Set param -name automatically (docker run)

``-name`` ist needed for linking containers, i.e. see http://docs.docker.io/en/latest/use/working_with_links_names/#working-with-links-names
This commit is contained in:
Matthias Kadenbach 2014-03-03 14:20:33 +01:00
parent 7194fc9173
commit f6db54b2dc
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ module VagrantPlugins
args << config[:args] if config[:args]
@machine.communicate.sudo %[
rm -f #{config[:cidfile]}
docker run #{args} #{config[:image]} #{config[:cmd]}
docker run #{args} -name #{config[:name]} #{config[:image]} #{config[:cmd]}
]
end