Forrest logo
back to the docker tool

docker:tldr:22c77

docker: Show help.
$ docker system
try on your machine

The docker system command is used to manage Docker's system resources, such as cleaning up unused containers, images, volumes, and networks.

Here are some commonly used subcommands of docker system:

  1. docker system df: This command provides an overview of Docker's disk usage. It displays the total amount of used and available space, as well as the number of containers, images, volumes, and networks.

  2. docker system prune: Running this command allows you to reclaim disk space by removing unused Docker resources. By default, it will prompt you before deleting each resource type.

  3. docker system prune --all: This variation of the prune subcommand removes all unused Docker resources without any confirmation prompts. It is useful when you want to completely clean up the system.

It is important to note that docker system exposes commands related to system resources management and monitoring. Other Docker functionalities like running containers or building images are not part of this command.

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