From e0350203624556364dd240c1470c0faa0bc95160 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 7 Jan 2014 09:12:29 -0600 Subject: test:consider docker cleanup after use --- go/t/docker/docker_deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'go/t') diff --git a/go/t/docker/docker_deploy.sh b/go/t/docker/docker_deploy.sh index 0e3f1d79..25597bc5 100755 --- a/go/t/docker/docker_deploy.sh +++ b/go/t/docker/docker_deploy.sh @@ -5,7 +5,7 @@ rnd_port=$(shuf -i 2000-65000 -n 1) docker_id=$(docker run -p $rnd_port:80 -d -v /krebs/go/t/docker/../../../:/krebs ubuntu /bin/bash /krebs/go/t/docker/dockertest/deploy) #docker run -p $rnd_port:80 -v /krebs/go/t/docker/../../../:/krebs ubuntu /bin/bash /krebs/go/t/docker/dockertest/deploy echo $docker_id on $rnd_port -trap "docker stop $docker_id" INT TERM EXIT QUIT +trap "docker stop $docker_id;docker rm $docker_id" INT TERM EXIT QUIT i=0 max_wait=20 echo "waiting for install (takes about 3 minutes)" -- cgit v1.2.3