Skip to content

Instantly share code, notes, and snippets.

@thinmy
Created May 29, 2018 01:24
Show Gist options
  • Save thinmy/20ee7d6643d7de23dfe36c70e55c5eb8 to your computer and use it in GitHub Desktop.
Save thinmy/20ee7d6643d7de23dfe36c70e55c5eb8 to your computer and use it in GitHub Desktop.
Docker useful commands
# 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