Skip to content

Instantly share code, notes, and snippets.

@dengsauve
Last active January 5, 2021 18:00
Show Gist options
  • Save dengsauve/50373d5a623c25bde8466720f27802a1 to your computer and use it in GitHub Desktop.
Save dengsauve/50373d5a623c25bde8466720f27802a1 to your computer and use it in GitHub Desktop.
Docker Compose clean teardown and rebuild
# Stop the container(s) using the following command:
docker-compose down
# Delete all containers using the following command:
docker rm -f $(docker ps -a -q)
# Delete all volumes using the following command:
docker volume rm $(docker volume ls -q)
# Restart the containers using the following command:
docker-compose up -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment