JAEN

Docker

docker system df / prune

DestructiveDocker disk usage

docker system df

Inspect and reclaim space used by images/containers/volumes.

Examples

  • docker system prune -aReclaim all unused

Syntax

docker system df | docker system prune [-a]

Before you run it

prune -a removes stopped/unused assets too.

Used when you see

Disk is full
3
Reclaim Docker spaceVerify before prune
See the whole flow →
Docker is eating the disk
1
Break down usage with system dfsystem df first; understand prune -a before running it.
See the whole flow →
Logs are eating the disk
4
In container hosts, check Docker's share too
See the whole flow →

Related commands

Check it once more before you run it

Some commands cannot be undone if one flag is wrong. An on-device reference works with no connection. Free to install, no ads.

Get it free on the App Store