diff options
author | makefu <github@syntax-fehler.de> | 2014-03-07 15:51:25 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2014-03-07 15:51:25 +0100 |
commit | f91c15a6ac8e94dae54f4cdaa93defd3f7006226 (patch) | |
tree | 3a5528370a701336e616bc0ac3a788f9781a725c /go/t | |
parent | b201fb5074cb38ce713fce42b97cf6e23b5c7e79 (diff) |
update docker to remove itself after completion
Diffstat (limited to 'go/t')
-rwxr-xr-x | go/t/docker/docker_deploy.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/go/t/docker/docker_deploy.sh b/go/t/docker/docker_deploy.sh index 3e64426d..faf9e605 100755 --- a/go/t/docker/docker_deploy.sh +++ b/go/t/docker/docker_deploy.sh @@ -2,7 +2,7 @@ cd $(dirname $(readlink -f $0)) set -xeuf 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_id=$(docker run -rm=true -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;docker rm $docker_id" INT TERM EXIT QUIT |