Skip to content

Instantly share code, notes, and snippets.

@nilbus
Created February 11, 2017 21:12
Show Gist options
  • Select an option

  • Save nilbus/1b73abe11ea80a5e619c796ed8b3d86b to your computer and use it in GitHub Desktop.

Select an option

Save nilbus/1b73abe11ea80a5e619c796ed8b3d86b to your computer and use it in GitHub Desktop.
nilbus.com docker service update script
#!/bin/sh
# Used with https://github.com/nilbus/docker-hook to deploy $IMAGE
# when triggered by a Docker Hub webhook.
IMAGE='nilbus/nilbus.com'
docker pull $IMAGE
docker service update http --image $IMAGE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment