From ada5e8bf7fe429c33ce5b9526864f3dd99040595 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 4 Mar 2014 07:32:25 -0800 Subject: [PATCH] provisioners/docker: actual auto assign name logic --- plugins/provisioners/docker/client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/provisioners/docker/client.rb b/plugins/provisioners/docker/client.rb index 0b5063f47..316133e97 100644 --- a/plugins/provisioners/docker/client.rb +++ b/plugins/provisioners/docker/client.rb @@ -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]}