What is the docker system prune
for containerd? I wanted to delete unused images and stopped containers to free up storage
Since July 2022, nerdctl
v0.22.1 do includes:
nerdctl system prune
:Add
nerdctl system prune
command. Needs--all
. (PR 1264, thanks to @junnplus)
And nerdctl image prune
(PR 1194) or nerdctl container prune
(PR 1180) was added in v0.22.0.
🐳
nerdctl system prune
Remove unused data
⚠️ Currently,
nerdctl system prune
requires--all
to be specified.Usage:
nerdctl system prune [OPTIONS]
Flags:
- 🐳
-a
,--all
: Remove all unused images, not just dangling ones- 🐳
-f
,--force
: Do not prompt for confirmation- 🐳
--volumes
: Prune volumes Unimplemented docker system prune flags:--filter