summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-12-25 00:00:36 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-12-25 00:00:36 +0900
commitf5bb9841549a023662bfcf7f85d634ca0012b48d (patch)
tree405f3fb42cb4058a6485e91c008908a214d82388
parentadc401e53df7e20f009eca5069c073a759c9c9e4 (diff)
tools route-server-docker.sh: wait for the container completion
don't kill a container before it creates config files. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rwxr-xr-xtools/route-server/route-server-docker.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/route-server/route-server-docker.sh b/tools/route-server/route-server-docker.sh
index ba525be0..1ce8fbe6 100755
--- a/tools/route-server/route-server-docker.sh
+++ b/tools/route-server/route-server-docker.sh
@@ -87,11 +87,12 @@ case "$1" in
sudo docker pull osrg/gobgp
sudo mkdir /usr/local/gobgp
sudo docker run --privileged=true -v /usr/local/gobgp:/mnt --name gobgp -id osrg/gobgp go run /root/gobgp/tools/route-server/quagga-rsconfig.go -c /mnt
- sudo docker rm -f gobgp
+ sudo docker wait gobgp
+ sudo docker rm gobgp
;;
*)
echo $1
- echo "Usage: root-server-docker {start|stop}"
+ echo "Usage: root-server-docker {start|stop|install}"
exit 2
;;
esac