'How to prune containerd images and containers?
What is the docker system prune
for containerd? I wanted to delete unused images and stopped containers to free up storage
Solution 1:[1]
For now, there's no command to do the same. There is an issue
open for nerdctl
and it seems that some alternative commands are being implemented.
Solution 2:[2]
crictl
provides a CLI for CRI-compatible container runtimes.
With crictl
we have an option to Remove all unused images similarly to how we used to prune the images using docker cli for docker
Command:
crictl rmi --prune
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Daigo |
Solution 2 | Mayank Upasak |