Created
May 29, 2018 01:24
-
-
Save thinmy/20ee7d6643d7de23dfe36c70e55c5eb8 to your computer and use it in GitHub Desktop.
Docker useful commands
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
# Install Rancher supported Docker version with Kubernetes support | |
curl https://releases.rancher.com/install-docker/17.03.sh | sh | |
# Stop all containers: | |
docker kill $(docker ps -q) | |
# Remove all containers | |
docker rm $(docker ps -a -q) | |
# Remove all docker images | |
docker rmi $(docker images -q) | |
# Remove all volumes | |
docker volume ls -qf dangling=true | xargs -r docker volume rm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment