docker – remove all containers and images

#!/bin/bash
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)

This entry was posted in Uncategorized. Bookmark the permalink.

Comments are closed.