To delete docker images and container one by one is tedious work. Here is the command to delete docker images and container. Delete all docker images
docker rmi -f $(docker images -aq)
Delete all docker containers
docker rm $(docker ps -aq)
Enter your email address to subscribe to this blog and receive notifications of new posts by email.