From 30e565f0ed62a2bf34ab62a356e432957f12ac10 Mon Sep 17 00:00:00 2001 From: Mike Dillon Date: Sun, 11 Oct 2015 11:04:00 -0700 Subject: [PATCH] Check "docker version" from a sibling container --- test/lib/docker_helpers.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lib/docker_helpers.bash b/test/lib/docker_helpers.bash index bbaf27e..c60c222 100644 --- a/test/lib/docker_helpers.bash +++ b/test/lib/docker_helpers.bash @@ -56,5 +56,5 @@ function docker_tcp { --expose 2375 \ -v /var/run/docker.sock:/var/run/docker.sock \ rancher/socat-docker - docker -H tcp://$(docker_ip $container_name):2375 version + docker run --rm --link "$container_name:docker" docker version }