leosayous21 / docker-stack-wait

Wait for a docker stack deploy to complete

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker Stack Wait

Waits for a docker stack deploy to complete.

Example Usage:

docker-stack-wait.sh $stack_name

Help output:

$ ./docker-stack-wait.sh -h
docker-stack-wait.sh [opts] stack_name
  -h:     this help message
  -r:     treat a rollback as successful (by default, a rollback indicates failure)
  -s sec: frequency to poll service state (default 5 sec)
  -t sec: timeout to stop waiting

Usage as container

$ docker run --rm -it \
  -v /var/run/docker.sock:/var/run/docker.sock \
  sudobmitch/docker-stack-wait $stack_name

or with an alias

$ alias docker-stack-wait='docker run --rm -it \
  -v /var/run/docker.sock:/var/run/docker.sock \
  sudobmitch/docker-stack-wait'

The respective container is available on Docker Hub and built with Docker Hub Automated Builds.

About

Wait for a docker stack deploy to complete

License:MIT License


Languages

Language:Shell 96.7%Language:Dockerfile 3.3%