Very handy and fundamental commands to delete ALL Docker images and containers:
First start by deleting the containers (since these are dependencies of images):
docker rm $(docker ps -a -q)
Then we can proceed to delete all the images:
docker rmi $(docker images -a -q)
No comments:
Post a Comment