Description
Shepherd is a Docker Swarm service that keeps your services up to date. Whenever a service's base image is refreshed, Shepherd updates the service. It checks every five minutes by default, and you can change that interval with the SLEEP_TIME variable. You can exclude services by listing them in IGNORELIST_SERVICES, or select services with FILTER_SERVICES, which accepts the same filters as docker service ls. If an update fails, ROLLBACK_ON_FAILURE can roll the service back to its previous version. UPDATE_OPTIONS and ROLLBACK_OPTIONS pass extra options to the update and rollback commands, and TIMEOUT sets how long an update may run before it is stopped. Private registries are supported through registry authentication,. You can run Shepherd as a container, with Docker Compose using the examples in the repository, or on a cron schedule.…
Highlights
- Updates Swarm services when their base image is refreshed
- Configurable check interval and update timeout
- Ignore lists and filters to choose services
- Automatic rollback when an update fails
- Private registry authentication
- Runs with Docker Compose or on a cron schedule
Ratings & Reviews
No ratings yet
Be the first to rate Shepherd.
People also visit
Shepherd FAQ
What does Shepherd do?
It automatically updates Docker Swarm services whenever their image is refreshed.
How often does it check?
Every five minutes by default. Change it with the SLEEP_TIME variable.
Can I keep a service from updating?
Yes. Add it to IGNORELIST_SERVICES, or use FILTER_SERVICES to choose which services update.
What happens if an update fails?
If ROLLBACK_ON_FAILURE is set, Shepherd rolls the service back to its previous version.
Does it work with private registries?
Yes. Set REGISTRY_HOST for your registry and REGISTRY_USER for login, and keep the password in a Docker secret or in REGISTRY_PASSWORD.
What are the best Shepherd alternatives?
Popular alternatives to Shepherd include Argocd Image Updater, HivePaaS and Nautical Backup. See all Shepherd alternatives


