Merge pull request #3051 from mattes/patch-1

provisioners/docker: set param -name automatically (docker run)
This commit is contained in:
Mitchell Hashimoto 2014-03-04 07:27:19 -08:00
commit f333b00f91
1 changed files with 1 additions and 0 deletions

View File

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