Clean docker images in Kubernetes cluster

Guillermo Garcia - May 22 - - Dev Community

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
. . . . . . . . . . . . . . . . . . . . . . .