for-win icon indicating copy to clipboard operation
for-win copied to clipboard

The disk size on the docker desktop settings UI doesn't tell the truth

Open vipinponnarath opened this issue 6 years ago • 5 comments

  • [x] I have tried with the latest version of my channel (Stable or Edge)
  • [ ] I have uploaded Diagnostics
  • Diagnostics ID:

Expected behavior

The docker desktop settings UI should show consistent disk usage as is reported by docker system df or atleast a close number. At present, for me, the settings UI shows Disk image size: 149 GB (136.3 GB used) The output of docker system df -v should match the 136.3 GB shown above in the settings UI

Actual behavior

However, if I do a docker system df -v, it shows me the following:

PS C:\WINDOWS\system32> docker system df -v
Images space usage:

REPOSITORY                                       TAG                 IMAGE ID            CREATED             SIZE                SHARED SIZE         UNIQUE SIZE         CONTAINERS
ubuntu-java                                      rc3                 6ea397989ce8        7 days ago          236.6MB             236.6MB             0B                  0
ubuntu-java                                      rc2                 a9d07defea12        7 days ago          236.6MB             236.6MB             0B                  0
ubuntu-java                                      rc1                 d2bea9c51242        7 days ago          236.6MB             236.6MB             0B                  0
masked:5000/com/tt-wl                            R20.3.4             c2ff2f42df3d        9 days ago          5.204GB             5.12GB              83.9MB              0
masked:5000/com/tt-db                            R20.3.4             a64ce1394f30        9 days ago          15.08GB             10.81GB             4.27GB              0
ubuntu                                           latest              4e5021d210f6        11 days ago         64.21MB             64.21MB             0B                  0
plantuml/plantuml-server                         jetty               f7e097353f81        13 days ago         403.1MB             0B                  403.1MB             0
masked:5000/12c_tt                               latest              f342501fe5c1        13 days ago         5.576GB             0B                  5.576GB             0
12c_tt                                           local               3f4c0587117f        3 weeks ago         5.146GB             0B                  5.146GB             0
masked:5000/tt_db                                latest              18538ec8abb9        7 weeks ago         15.13GB             0B                  15.13GB             0
masked:5000/oracle/serverjre                     latest              ef9c1a0152ab        2 months ago        290.5MB             0B                  290.5MB             0
alpine                                           latest              e7d92cdc71fe        2 months ago        5.591MB             0B                  5.591MB             1
masked:5000/maven-alpine                         latest              01b36c67abc5        2 months ago        163.7MB             0B                  163.7MB             1
k8s.gcr.io/kube-controller-manager               v1.15.5             1399a72fa1a9        5 months ago        158.8MB             42.32MB             116.5MB             0
k8s.gcr.io/kube-proxy                            v1.15.5             cbd7f21fec99        5 months ago        82.41MB             42.32MB             40.09MB             0
k8s.gcr.io/kube-apiserver                        v1.15.5             e534b1952a0d        5 months ago        206.9MB             42.32MB             164.6MB             0
k8s.gcr.io/kube-scheduler                        v1.15.5             fab2dded59dd        5 months ago        81.11MB             42.32MB             38.79MB             0
masked:5000/com/tt-wl                            latest              baf5c572ce55        9 months ago        5.12GB              5.12GB              0B                  0
masked:5000/com/tt-db                            latest              a96006f12f55        9 months ago        10.81GB             10.81GB             0B                  0
docker/kube-compose-controller                   v0.4.23             a8c3d87a58e7        10 months ago       35.27MB             6.084MB             29.19MB             0
docker/kube-compose-api-server                   v0.4.23             f3591b2cb223        10 months ago       49.94MB             6.084MB             43.86MB             0
masked:5000/sshd                                 latest              737973cb292b        10 months ago       415.3MB             0B                  415.3MB             1
k8s.gcr.io/coredns                               1.3.1               eb516548c180        14 months ago       40.3MB              0B                  40.3MB              0
k8s.gcr.io/etcd                                  3.3.10              2c4adeb21b4f        16 months ago       258.1MB             0B                  258.1MB             0
k8s.gcr.io/pause-amd64                           3.1                 da86e6ba6ca1        2 years ago         742.5kB             0B                  742.5kB             0

Containers space usage:

CONTAINER ID        IMAGE                                               COMMAND                  LOCAL VOLUMES       SIZE                CREATED             STATUS                    NAMES
481584cb01d0        sshd:latest                                         "/bin/bash -c '/etc/…"   0                   715kB               8 days ago          Exited (137) 8 days ago   deploy_20.1
547a8cd6101b        masked:5000/maven-alpine:latest                     "mvn --settings=/usr…"   0                   0B                  8 days ago          Exited (0) 8 days ago     citrus_20.1
0b87b62d3741        alpine                                              "ls data"                0                   0B                  5 weeks ago         Exited (0) 5 weeks ago    ct-alpine

Local Volumes space usage:

VOLUME NAME         LINKS               SIZE

Build cache usage: 0B

CACHE ID            CACHE TYPE          SIZE                CREATED             LAST USED           USAGE               SHARED
PS C:\WINDOWS\system32>

Information

  • Windows Version: 1909 OS build - 18363.720
  • Docker Desktop Version: 2.2.0.4 (stable)
  • Are you running inside a virtualized Windows e.g. on a cloud server or on a mac VM: No. Directly on windows pro local client

Steps to reproduce the behavior

  1. Build some images, let the disk size grow
  2. cleanup the images and remove images and remove unused volumes
  3. You can note that the settings UI doesn't change its size

vipinponnarath avatar Apr 01 '20 16:04 vipinponnarath

Thanks for the report. This is indeed broken at the moment and will be fixed in the upcoming Edge (see https://github.com/docker/docker.github.io/pull/10540/files#diff-2cf4b26360fbb0c5e29dfed61a96d2c5R56) to be released tomorrow.

mat007 avatar Apr 01 '20 16:04 mat007

my kubernetes instance on docker desktop also behaves weird. It is garbage collecting important images although the disk is not 85% or higher as per the docker system df command. Should I raise a different issue for that or is it related to this same issue? Is there a way in docker-desktop to temporarily disengage the kubernetes image garbage collection?

vipinponnarath avatar Apr 03 '20 08:04 vipinponnarath

It seems unrelated, so definitely a separate issue.

mat007 avatar Apr 03 '20 08:04 mat007

Issues go stale after 90 days of inactivity. Mark the issue as fresh with /remove-lifecycle stale comment. Stale issues will be closed after an additional 30 days of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle stale

docker-robott avatar Jul 02 '20 01:07 docker-robott

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked

docker-robott avatar Aug 31 '20 03:08 docker-robott