Skip to content

Instantly share code, notes, and snippets.

@armamini
Created June 9, 2024 09:49
Show Gist options
  • Select an option

  • Save armamini/73faeb3ab0c6ddc876e982f60c4c8c2c to your computer and use it in GitHub Desktop.

Select an option

Save armamini/73faeb3ab0c6ddc876e982f60c4c8c2c to your computer and use it in GitHub Desktop.
Shepherd Config
docker service create --name shepherd \
--constraint "node.role==manager" \
--env SLEEP_TIME="2m" \
--env ROLLBACK_ON_FAILURE="true" \
--env IMAGE_AUTOCLEAN_LIMIT="5" \
--env UPDATE_OPTIONS="--update-delay=30s" \
--mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock,ro \
containrrr/shepherd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment