added as ``args << ``

This commit is contained in:
Matthias Kadenbach 2014-03-03 16:30:42 +01:00
parent f6db54b2dc
commit 8f76d5e2cd
1 changed files with 2 additions and 1 deletions

View File

@ -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