diff --git a/plugins/provisioners/docker/client.rb b/plugins/provisioners/docker/client.rb index 316133e97..5feb3712b 100644 --- a/plugins/provisioners/docker/client.rb +++ b/plugins/provisioners/docker/client.rb @@ -75,9 +75,9 @@ module VagrantPlugins end def create_container(config) - args = "-cidfile=#{config[:cidfile]} " + args = "--cidfile=#{config[:cidfile]} " args << "-d " if config[:daemonize] - args << "-name #{config[:name]} " if config[:name] && config[:auto_assign_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]}