#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:
Kamjar Gerami 2016-02-28 13:00:35 +01:00
parent c851637260
commit fc6bc723f7
1 changed files with 2 additions and 3 deletions

View File

@ -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