2020-09-10 02:29:22 +01:00
|
|
|
# docker system
|
|
|
|
|
|
|
|
> Manage Docker data and display system-wide information.
|
|
|
|
> More information: <https://docs.docker.com/engine/reference/commandline/system/>.
|
|
|
|
|
2023-12-27 06:41:30 +00:00
|
|
|
- Display help:
|
2020-09-10 02:29:22 +01:00
|
|
|
|
|
|
|
`docker system`
|
|
|
|
|
2024-03-14 05:01:06 +00:00
|
|
|
- Show Docker disk usage:
|
2020-09-10 02:29:22 +01:00
|
|
|
|
|
|
|
`docker system df`
|
|
|
|
|
|
|
|
- Show detailed information on disk usage:
|
|
|
|
|
|
|
|
`docker system df --verbose`
|
|
|
|
|
|
|
|
- Remove unused data:
|
|
|
|
|
|
|
|
`docker system prune`
|
|
|
|
|
|
|
|
- Remove unused data created more than a specified amount of time in the past:
|
|
|
|
|
2024-04-18 19:38:25 +01:00
|
|
|
`docker system prune --filter "until={{hours}}h{{minutes}}m"`
|
2020-09-10 02:29:22 +01:00
|
|
|
|
|
|
|
- Display real-time events from the Docker daemon:
|
|
|
|
|
|
|
|
`docker system events`
|
|
|
|
|
|
|
|
- Display real-time events from containers streamed as valid JSON Lines:
|
|
|
|
|
|
|
|
`docker system events --filter 'type=container' --format '{{json .}}'`
|
|
|
|
|
|
|
|
- Display system-wide information:
|
|
|
|
|
|
|
|
`docker system info`
|