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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay