Skip to content

Instantly share code, notes, and snippets.

@ndom91
Created February 2, 2022 18:07
Show Gist options
  • Select an option

  • Save ndom91/c6ca3de19d32158c9c3b9773596acfe4 to your computer and use it in GitHub Desktop.

Select an option

Save ndom91/c6ca3de19d32158c9c3b9773596acfe4 to your computer and use it in GitHub Desktop.
Watchtower Docker Update
#!/usr/bin/env bash
# Use 'containrrr/watchtower' to auto-update docker container image
# argv[1] is used as docker container name to update
docker run \
--rm \
-v /var/run/docker.sock:/var/run/docker.sock \
containrrr/watchtower \
--run-once \
"$1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment