Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ghostzero/58c9fa9f25febbd32876933d1dd95675 to your computer and use it in GitHub Desktop.

Select an option

Save ghostzero/58c9fa9f25febbd32876933d1dd95675 to your computer and use it in GitHub Desktop.
kubernetes nodes automatically perform image garbage collection. You can find documentation on the default thresholds here:
https://kubernetes.io/docs/concepts/cluster-administration/kubelet-garbage-collection/#user-configuration
If for some reason you want to muck about with this manually, you can try:
sudo k3s crictl images to see what images have been pulled locally
sudo k3s crictl rmi --prune to delete any images no currently used by a running container
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment