Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Docker deleting all containers and/or images
- ***Warning: This will destroy all your images and containers. It will not be possible to restore them!***
- #### Deleting all containers
- ```docker rm $(docker ps -a -q)```
- #### Deleting all images
- ```docker rmi $(docker images -q)```
- ### script
- - Download script file below
- - Run
- ```chmod +x```
- - Then Run
- ```bash rm.sh```
- - Or
- ```./rm.sh```
Add Comment
Please, Sign In to add comment