provisioners/docker: actual auto assign name logic

This commit is contained in:
Mitchell Hashimoto 2014-03-04 07:32:25 -08:00
parent 857b989c47
commit ada5e8bf7f
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +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 << "-name #{config[:name]} " if config[:name] && config[:auto_assign_name]
args << config[:args] if config[:args]
@machine.communicate.sudo %[
rm -f #{config[:cidfile]}