From bdfbd4419b78b06f5c8348a622ac58e811013680 Mon Sep 17 00:00:00 2001 From: Brad Ganley Date: Fri, 8 Dec 2023 18:38:06 -0600 Subject: [PATCH] Added watchtower zero-shot alias --- .bash_aliases | 1 + 1 file changed, 1 insertion(+) diff --git a/.bash_aliases b/.bash_aliases index b93c7c3..724c13e 100755 --- a/.bash_aliases +++ b/.bash_aliases @@ -113,6 +113,7 @@ alias doco="$DOCKER_COMPOSE_COMMAND" alias redoco="$DOCKER_COMPOSE_COMMAND down && $DOCKER_COMPOSE_COMMAND up -d" alias redog="$DOCKER_COMPOSE_COMMAND down && $DOCKER_COMPOSE_COMMAND up -d; $DOCKER_COMPOSE_COMMAND logs -f" alias dolog="$DOCKER_COMPOSE_COMMAND up -d; $DOCKER_COMPOSE_COMMAND logs -f" +alias watchtower="docker run -d --name watchtower -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower --restart unless-stopped" # Regain all that space taken up by projects you abandoned alias docprune='docker image prune && docker network prune && docker container prune && docker volume prune' # Send things instantly to a pastebin. Pipe other commands into this to share their output.