Merge pull request #3051 from mattes/patch-1
provisioners/docker: set param -name automatically (docker run)
This commit is contained in:
commit
f333b00f91
|
@ -77,6 +77,7 @@ module VagrantPlugins
|
|||
def create_container(config)
|
||||
args = "-cidfile=#{config[:cidfile]} "
|
||||
args << "-d " if config[:daemonize]
|
||||
args << "-name #{config[:name]} " if config[:name]
|
||||
args << config[:args] if config[:args]
|
||||
@machine.communicate.sudo %[
|
||||
rm -f #{config[:cidfile]}
|
||||
|
|
Loading…
Reference in New Issue