Difference between revisions of "Docker system df"

From wikieduonline
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
<code>[[docker system]] df</code> or <code>[[docker system df --verbose]]</code>   Show docker [[disk usage]]
+
<code>[[docker system]] df</code> or <code>[[docker system df --verbose]]</code> show docker [[disk usage]].
  
 
Depending on your system [[disk usage]] command can take long time to display results.
 
Depending on your system [[disk usage]] command can take long time to display results.
Line 7: Line 7:
  
 
  docker system df
 
  docker system df
  docker system df -v
+
  [[docker system df -v]]
 
  docker system df -v | [[grep -A]]100 "VOLUME NAME"
 
  docker system df -v | [[grep -A]]100 "VOLUME NAME"
  
Line 38: Line 38:
 
* <code>[[/var/lib/docker/]]</code>
 
* <code>[[/var/lib/docker/]]</code>
 
* <code>[[docker system prune]]</code>
 
* <code>[[docker system prune]]</code>
 +
* <code>[[docker buildx du]]</code>
 +
* [[docker run --volume]]
  
 
== See also ==
 
== See also ==

Latest revision as of 09:41, 12 May 2023

docker system df or docker system df --verbose show docker disk usage.

Depending on your system disk usage command can take long time to display results.

https://docs.docker.com/engine/reference/commandline/system_df/. Since API 1.25+ (v 1.13) 01/2017, announcement

docker system df
docker system df -v
docker system df -v | grep -A100 "VOLUME NAME"


Examples[edit]

docker system df
TYPE                TOTAL               ACTIVE              SIZE                RECLAIMABLE
Images              20                  9                   11.57GB             5.315GB (45%)
Containers          9                   9                   1.02GB              0B (0%)
Local Volumes       9                   8                   3.255GB             3.037GB (93%)
Build Cache         0                   0                   0B                  0B

For more complete information use -v flag: docker system df --verbose docker system df -v


Errors[edit]

docker system df
Error response from daemon: a disk usage operation is already running

Related terms[edit]

See also[edit]

  • https://docs.docker.com/v17.12/edge/engine/reference/commandline/system_info/
  • https://docs.docker.com/v17.12/edge/engine/reference/commandline/system_events/
  • Advertising: