One Liner Delete Unused Docker Images

In this blog post, I will show you a one-liner Docker command that will delete unused images.

Docker call unused images dangling images.

In our case dangling images, are images that we are not using in our image layers.

Delete Unused Images

To delete dangling images I will use the following command.

Docker images prune -f