Skip to content

gioxtech/docker-swarm-wait

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Swarm Wait

Waits for a docker swarm deploy to complete.

Example Usage:

docker-swarm-wait.sh $services

Help output:

$ ./docker-swarm-wait.sh -h
docker-swarm-wait.sh [opts] services...
  -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-swarm-wait $services

or with an alias

$ alias docker-swarm-wait='docker run --rm -it \
  -v /var/run/docker.sock:/var/run/docker.sock \
  sudobmitch/docker-swarm-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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 97.7%
  • Dockerfile 2.3%