Created
August 16, 2018 07:07
-
-
Save gundamew/428b1e72ef7ae7d1a2b9bc7577bcf647 to your computer and use it in GitHub Desktop.
Stop , remove, and rebuild Docker containers.
This file contains 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 | |
set -euo pipefail | |
docker stop $(docker ps -aq) | |
docker rm $(docker ps -aq) | |
docker rmi $(docker images --format "{{.Repository}}" | grep 'bsdock') | |
[[ -f "$PWD/docker-compose.yml" ]] && docker-compose up -d --build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Or replace commands below:
with: