[ Guillermo@Garcia ]# more /var/pub | beer

martes, 21 de mayo de 2024

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:
```bash
docker system prune
```

* Using containerd:
```bash
crctl rmi --prune
```