Forrest logo
back to the docker tool

docker:tldr:d3391

docker: Show docker disk usage.
$ docker system df
try on your machine

The command docker system df is used to display information about the disk usage by Docker. It provides data on the amount of space used by Docker images, containers, and other resources.

Specifically, the command presents the following information:

  1. Total disk space used by Docker: This indicates the overall disk space consumed by Docker on the system.
  2. Space used by images: It shows the total size of the Docker images currently present on the system.
  3. Space used by containers: This represents the total size occupied by running Docker containers.
  4. Space used by local volumes: The size of the local volumes created and used by Docker is displayed.
  5. Space used by build cache: The size of the build cache utilized by Docker during image builds is shown. Build cache is useful in speeding up subsequent image builds.
  6. Space available for use: It indicates the remaining free space on the disk.

This command helps Docker users monitor and manage disk space usage, allowing them to make informed decisions regarding cleanup, resource allocation, and optimization.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the docker tool