Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### List all containers (only IDs)
- docker ps -aq
- ### Stop all running containers
- docker stop $(docker ps -aq)
- ### Remove all containers
- docker rm $(docker ps -aq)
- ### List all images
- docker image ls
- ### Remove all unused images
- docker image prune -af
- ### Remove all images
- docker rmi -f $(docker images -q)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement