Skip to content

A simple yet effective sh script to process rolling updates for a docker swarm service

Notifications You must be signed in to change notification settings

honibis/docker-swarm-rolling-update

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

docker-swarm-rolling-update

If docker service update is not working for you, this is what i came up with A simple yet effective sh script to process rolling updates for a docker swarm service

Define array of server IP addresses

hostnames=("host1" "host2" "host3") servers=("10.0.0.1" "10.0.0.2" "10.0.0.3")

Define common username, image name, and service name

username="ssh username with docker privilages (sudo usermod -aG docker your_username)" image_name="image name, image need to be public or logged in with your_username (sudo - u your_username docker login)" service_name="swarm service name, needs to be deployed as global"

About

A simple yet effective sh script to process rolling updates for a docker swarm service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages