Created
February 2, 2022 18:07
-
-
Save ndom91/c6ca3de19d32158c9c3b9773596acfe4 to your computer and use it in GitHub Desktop.
Watchtower Docker Update
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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