Skip to content

Instantly share code, notes, and snippets.

@64bitint
Last active March 27, 2022 18:29
Show Gist options
  • Select an option

  • Save 64bitint/3c122b211c70519153fc208c01766ba9 to your computer and use it in GitHub Desktop.

Select an option

Save 64bitint/3c122b211c70519153fc208c01766ba9 to your computer and use it in GitHub Desktop.
Update docker container using watchtower
echo "Select docker container to update using Watchtower:"; select opt in $(docker ps --format "{{.Names}}"); do
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower --run-once "$opt"; break; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment