Created
November 1, 2025 16:22
-
-
Save p-web-git/a9d317b92153cc98069fb8c83d963b19 to your computer and use it in GitHub Desktop.
update docker containers in one script
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
| #!/bin/bash | |
| set -e | |
| APP=$(hostname) | |
| cd ~/"$APP-app" | |
| docker compose pull && docker compose up -d | |
| echo "Clean up unused docker images" | |
| docker image prune -a -f | |
| exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment