#7074 - fixes does not allow provisioning when container name is specifed - since recent versions of Docker stores it's full container ID we no longer need to use the short version
This commit is contained in:
parent
c851637260
commit
fc6bc723f7
|
@ -126,9 +126,8 @@ module VagrantPlugins
|
|||
@machine.communicate.tap do |comm|
|
||||
# Docker < 0.7.0 stores container IDs using its short version while
|
||||
# recent versions use the full container ID
|
||||
# See https://github.com/dotcloud/docker/pull/2140 for more information
|
||||
return comm.test("#{docker_ps} | grep -wFq #{id}") ||
|
||||
comm.test("#{docker_ps} --no-trunc | grep -wFq #{id}")
|
||||
# using full container ID from now on.
|
||||
return comm.test("#{docker_ps} --no-trunc | grep -wFq #{id}")
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue