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.