diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-12-25 00:00:36 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-12-25 00:00:36 +0900 |
commit | f5bb9841549a023662bfcf7f85d634ca0012b48d (patch) | |
tree | 405f3fb42cb4058a6485e91c008908a214d82388 | |
parent | adc401e53df7e20f009eca5069c073a759c9c9e4 (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-x | tools/route-server/route-server-docker.sh | 5 |
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 |