I have a K3s single-node cluster running with Containerd and where I'm reaching the space disk limit.
It seems I have some old unused docker images on the machine.
How can I cleanup those in order to free up the disk ?
Thanks
EDIT
After further investigation it seems it's more a volume (or several) from running container that is taking all the disk space.
How can I list the volumes used by the pods and their properties (disk etc..)
Best Answer
About the docker images
As mentioned in docker documentation
You can use
docker image ls
to list all images anddocker rmi
to delete them.For example you can use
To delete all the images
About disk space
You could try with df, du and kubectl top/describe commands.
You can list all Persistent Volumes and Persistent Volumes Claims with:
You can list all Persistent Volumes sorted by capacity
Additionally look at these
Hope you find this useful.