Overview


Whenever I go to Docker Desktop Dashboard -> Images, the error message "Unable to calculate image disk size" pops up. When running docker system df, I get Error response from daemon: error getting build cache usage: failed to get usage for j3svhcbbl74vqb00pwkqjgj8q: snapshot 98mm1nreuc65eum0wpl436h5t not found. I do not know how to reproduce the problem, but vaguely remember Ctrl-C'ing during apt-get install build-essentials during docker build. While I've only used Docker for <10 containers and <5 hours, somehow I get the feeling that maybe during some failed unsafe transaction, some database integrity is compromised, and docker ends up looking for some snapshot that it didn't get the memo was deleted.
Expected and Actual behavior
- Open Docker Desktop Dashboard.
- Go to "Images".
Expected behavior: No error message. Disk usage is shown, just like it was shown 5 minutes ago.
Actual behavior: Red banner with message "Unable to calculate image disk size". "Last refresh: never".
- Run
docker system df in Terminal.
Expected behavior: No error message.
Actual behavior: Error response from daemon: error getting build cache usage: failed to get usage for j3svhcbbl74vqb00pwkqjgj8q: snapshot 98mm1nreuc65eum0wpl436h5t not found.
Information
- macOS Version: macOS Monterey 12.6
- Intel chip or Apple chip: Intel chip
- Docker Desktop Version: 4.12.0 (85629)
Output of /Applications/Docker.app/Contents/MacOS/com.docker.diagnose check
Starting diagnostics
[PASS] DD0027: is there available disk space on the host?
[PASS] DD0028: is there available VM disk space?
[PASS] DD0031: does the Docker API work?
[PASS] DD0004: is the Docker engine running?
[PASS] DD0011: are the LinuxKit services running?
[PASS] DD0016: is the LinuxKit VM running?
[PASS] DD0001: is the application running?
[PASS] DD0018: does the host support virtualization?
[PASS] DD0017: can a VM be started?
[PASS] DD0015: are the binary symlinks installed?
[PASS] DD0003: is the Docker CLI working?
[PASS] DD0013: is the $PATH ok?
[PASS] DD0007: is the backend responding?
[PASS] DD0014: are the backend processes running?
[PASS] DD0008: is the native API responding?
[PASS] DD0009: is the vpnkit API responding?
[PASS] DD0010: is the Docker API proxy responding?
[PASS] DD0012: is the VM networking working?
[PASS] DD0032: do Docker networks overlap with host IPs?
[SKIP] DD0030: is the image access management authorized?
[PASS] DD0019: is the com.docker.vmnetd process responding?
[PASS] DD0033: does the host have Internet access?
No fatal errors detected.
Steps to reproduce the behavior
I am unable to reproduce the unclean behavior cleanly. Since the problem is with the Docker daemon and not with any particular image/container, I am unable to provide a Dockerfile.
I was unable to fix it by restarting my laptop, but was able to fix it by going to Debug -> Clean / Purge data.
Overview
Whenever I go to Docker Desktop Dashboard -> Images, the error message "Unable to calculate image disk size" pops up. When running
docker system df, I getError response from daemon: error getting build cache usage: failed to get usage for j3svhcbbl74vqb00pwkqjgj8q: snapshot 98mm1nreuc65eum0wpl436h5t not found. I do not know how to reproduce the problem, but vaguely remember Ctrl-C'ing duringapt-get install build-essentialsduringdocker build. While I've only used Docker for <10 containers and <5 hours, somehow I get the feeling that maybe during some failed unsafe transaction, some database integrity is compromised, and docker ends up looking for some snapshot that it didn't get the memo was deleted.Expected and Actual behavior
Expected behavior: No error message. Disk usage is shown, just like it was shown 5 minutes ago.
Actual behavior: Red banner with message "Unable to calculate image disk size". "Last refresh: never".
docker system dfin Terminal.Expected behavior: No error message.
Actual behavior:
Error response from daemon: error getting build cache usage: failed to get usage for j3svhcbbl74vqb00pwkqjgj8q: snapshot 98mm1nreuc65eum0wpl436h5t not found.Information
Output of
/Applications/Docker.app/Contents/MacOS/com.docker.diagnose checkSteps to reproduce the behavior
I am unable to reproduce the unclean behavior cleanly. Since the problem is with the Docker daemon and not with any particular image/container, I am unable to provide a Dockerfile.
I was unable to fix it by restarting my laptop, but was able to fix it by going to Debug -> Clean / Purge data.