DEV Community

Guillermo Garcia
Guillermo Garcia

Posted on • Originally published at ahioros.info on

Clean docker images in Kubernetes cluster

A few days ago, in my Kubernetes lab, I noticed that I was running out of space. As a result, I had to delete those old Docker images.

You need go to each node and run as root:
Choose your alternartive:

  • Using docker:
docker system prune
Enter fullscreen mode Exit fullscreen mode
  • Using containerd:
crctl rmi --prune
Enter fullscreen mode Exit fullscreen mode

Top comments (0)