Guest User

Untitled

a guest
Feb 24th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. # Docker deleting all containers and/or images
  2.  
  3. ***Warning: This will destroy all your images and containers. It will not be possible to restore them!***
  4.  
  5. #### Deleting all containers
  6. ```docker rm $(docker ps -a -q)```
  7. #### Deleting all images
  8. ```docker rmi $(docker images -q)```
  9.  
  10. ### script
  11.  
  12. - Download script file below
  13. - Run
  14. ```chmod +x```
  15. - Then Run
  16. ```bash rm.sh```
  17. - Or
  18. ```./rm.sh```
Add Comment
Please, Sign In to add comment