Docker – Cleanup everything
Hi, Here a quick script to cleanup all images and containers quickly. It is useful while you develop and what to restart fresh :
1 2 3 |
#!/bin/sh docker ps -aq | xargs docker rm -f docker images -q | xargs docker rmi -f |