added as ``args << ``
This commit is contained in:
parent
f6db54b2dc
commit
8f76d5e2cd
|
@ -77,10 +77,11 @@ 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]}
|
||||
docker run #{args} -name #{config[:name]} #{config[:image]} #{config[:cmd]}
|
||||
docker run #{args} #{config[:image]} #{config[:cmd]}
|
||||
]
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue