Docker desktop cannot start, unable to calculate image disk size - docker

I am having issues trying to open Docker on Windows 11 after installing. I followed the instructions on the Docker website, and have a working WSL 2 installation. When I try to open Docker Desktop, the application first shows a red banner that says "Unable to calculate image disk size" and then freezes. Docker Desktop does not have a storage size listed in the app list.
During the installation process, I do not see se WSL 2 instead of Hyper-V option on the Configuration page. When I run the command ".\resources\com.docker.diagnose.exe check", I get the following error message (edited for brevity):
failed to ping VM diagnosticsd with error: Get "http://ipc/ping": open \\.\pipe\dockerDiagnosticd: The system cannot find the file specified.
I can provide the full message if need be but Stack Overflow keeps marking this post as spam. I have looked online for potential solutions but none have worked. I have tried uninstalling and reinstalling, modifying $PATH, pruning Docker, running Docker outside of Docker Desktop.

Related

How can I resolve "unexpected EOF" error when pulling docker image

I have Docker Desktop 4.16.2 (95914) on MacOS Ventura 13.1, and as far as I know I'm not connected to any proxies. I've authenticated to docker hub via docker desktop, and have tried to pull a python base image by running "docker build .", with the following line at the top of the Dockerfile:
FROM python:3
I get the following error:
Get "https://registry-1.docker.io/v2/": unexpected EOF
Does anyone know what might be causing this and how to resolve it?
I pinned down the issue to privileges changes since Docker Desktop 4.15.0 for Mac.
What fixed the issue on my end was to downgrade to 4.14.1:
Uninstall Docker completely. This can be done by opening Docker Desktop UI, clicking the Bug icon and clicking "Uninstall". Then, the application can be moved to the bin.
Install Docker Desktop 4.14.1
I encountered this issue on a company Mac where I suspect the Privileges app I need to use to elevate permissions doesn't work well with the privileges changes Docker made starting from 4.15.0.
Extract from their 4.15.0 changelog:
Docker Desktop for Mac no longer needs to install the privileged helper process com.docker.vmnetd on install or on the first run. For more information see Permission requirements for Mac.

Docker "unable to calculate image disk size"

When running docker desktop, it starts for 2 seconds and then closes.
I have tried reinstalling and changing the configuartion but nothing has worked so far.
I just had the same error today. I cannot be sure it is the same problem that you have so you must check first. I was getting the message "unable to calculate the disk image size" in the UI and not being able to execute any docker command to prune it (https://docs.docker.com/config/pruning/) since the daemon was down. I also updated docker to the latest version and the error was still there. I am supposing you are using Docker Desktop for Windows over WSL 2.
The first step was to execute the self diagnostic tool (https://docs.docker.com/desktop/troubleshoot/overview/#self-diagnose-tool)
C:\Program Files\Docker\Docker\resources\com.docker.diagnose.exe check
Just to find out the following error message (and a few others that can be related, so I ignored them): "WSL Distribution docker-desktop is missing"
Distribution error
So, I checked the WSL list using the wsl --list --verbose command and the docker-desktop distribution was in the "Uninstalling" state.
Following the advice here (even it is not for the same error) https://github.com/docker/for-win/issues/6971#issuecomment-636358053 which ensures it will be recreated, I executed wsl --unregister docker-desktop and started the docker engine again and everything started without errors.
wsl and docker
I am not sure what caused it, but it was certainly not disk space.
docker system prune
this worked for me

'Docker Desktop Stopping' showing in screen when I start the docker

I am trying to start my docker by running shortcut of docker desktop but it shows the message Docker Desktop Stopping and never returns anything else.
Docker version gives me Docker version 20.10.16, build aa7e414
Docker build gives me this below error -
docker build .
error during connect: This error may indicate that the docker daemon is not running.: Post “http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/build?buildargs=%7B%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&labels=%7B%7D&memory=0&memswap=0&networkmode=default&rm=1&shmsize=0&target=&ulimits=null&version=1”: open //./pipe/docker_engine: The system cannot find the file specified.
I had the same probably using Windows. To fix it, I had to make sure WSL 2 was installed properly:
https://learn.microsoft.com/en-gb/windows/wsl/install-manual#step-4---download-the-linux-kernel-update-package
If it's already installed on your machine, try uninstalling and reinstalling it.
Then, open Docker Desktop and click on the 'troubleshoot' icon in the top right corner. Click 'Clean/Purge Data' and select 'WSL 2' only and click 'delete'. Then restart your machine and it should work. Hope that helps!

Docker Desktop is shutting down and Docker failed to initialize

I'm trying to install Docker Desktop onto my Windows OS. I have WSL 2 with Ubuntu already set up and have the Virtual Machine Platform also checked in the windows features. My OS build is 19043.1766 which means it should work, and I have tried deleting the Docker related information in the App Data folder to no avail. The first time I installed it, it asked me to log out. Ever since then no matter if I reinstall or restart it will always say Docker failed to initialize. This is my first time downloading it and I have never been able to open the program.

I can't initialize docker on Windows 10

I installed docker version 20.10.11 on my Windows 10 home with build 19042, the installation was successful, but when running docker, the daemon was not started, so I manually installed wsl2 using this tutorial.
https://nlearn.microsoft.com/en-us/windows/wsl/install
Now when executing any docker command via cli, it shows this message
"Server:
ERROR: error during connect: In the default daemon configuration on Windows, the docker
client must be run with elevated privileges to connect.: Get
"http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/info": open //./pipe/docker_engine: The
system cannot find the specified file.
errors pretty printing info"
I've followed all the tutorials from this link
Docker cannot start on Windows, none of them worked.
When I open the Docker Desktop dashboard, it shows the message docker starting engineer, or something like that, it keeps initializing, but it never finishes initializing.
Virtualization is turned on, when I open processes I notice that docker.service is running and a process called Vmmem, when I look at all the services even the ones that are not running. There's only one, which is the Docker Desktop referring to the docker
Ps: I don't know other programs may be interfering with it, I have an oracle 18cxe database running on my machine, I don't know it's interfering with a network connection or something.
I would like to know how I can get an accurate log, to know what the problem really is, how do I trace this error?

Resources