docker:tldr:22c77
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
:
-
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. -
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. -
docker system prune --all
: This variation of theprune
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.