Overall Consumption

$ docker system df


The following commands allow us to delete all stopped containers at once and to reclaim the disk space they’re using:

$ docker container prune
WARNING! This will remove all stopped containers.
Are you sure you want to continue? [y/N] y
Deleted Containers:
Total reclaimed space: 104.9MB

Images Disk Usage

The following commands list the existing dangling image on the system:

$ docker image ls -f dangling=true
REPOSITORY  TAG      IMAGE ID         CREATED             SIZE
<none>      <none>   21e658fe5351     12 minutes ago      71.3MB

To remove the dangling image we can go the long way:

$ docker image rm $(docker image ls -f dangling=true -q)

0 commenti

Lascia un commento

Segnaposto per l'avatar