Docker 4.39.0 not running able to start on ubuntu 24.10

i updated my docker desktop from 4.37 to 4.39 and since then my docker is not engine is not able to start, when ever i click to docker desktop, is open but always show that docker engine is starting up, but after some time it show status as docker running in saver mode and show errors on loading containers and images, through CLI also it is not running.
it always shows : Starting the Docker Engine and after some time, is shows docker engine running in saver mode , but in reality it is not running at all,
my OS is ubuntu 24.10 , the docker was running fine with 4.37, but with 4.38 and 4.39, this issue is comming

1 Like

I’m having the same issue (I think). No docker commands are responsive after upgrading. Restarting the service and .socket don’t help. I think I’m going to attempt to downgrade to see if I can salvage my data, then likely transition to Podman since this seems to keep happening with Docker. It’s like Russian Roulette with every upgrade.

I have a fresh install, but have this problem too. After some searching, I believe the cause for me is that Docker Desktop is automatically trying to create a 1TB Docker.raw file in my encrypted home folder at .docker/desktop/vms/0/data. It’s taking forever to do this and I’m still watching the file grow. It never asked me where I wanted this file or how large I wanted it to be!

From what I read online, I can change this in the Docker Desktop GUI config later and the file will be deleted and recreated, but I can’t get into the GUI since it says “Starting the Docker Engine…” https://docs.docker.com/desktop/troubleshoot-and-support/faqs/linuxfaqs/#where-does-docker-desktop-store-linux-containers

At first I thought it was in error until I found this info in the logs from running:

journalctl --user --unit=docker-desktop -r
com.docker.backend[35502]: [23:38:34.934542058Z][main.engines          ] waiting for linux/qemu VM to start
com.docker.backend[35502]: [23:38:34.934566555Z][main.engines          ] running engine linux/qemu
com.docker.backend[35502]: [23:38:34.934602222Z][main.events           ] adding server timestamp to event (unix): 1742859514934587204 (checking preconditions)
com.docker.backend[35502]: [23:38:34.934652828Z][main.statehandler     ] sending to Dashboard: starting
com.docker.backend[35502]: [23:38:34.934695670Z][main.events           ] adding server timestamp to event (unix): 1742859514934692584 (initializing VM configuration)
com.docker.backend[35502]: [23:38:34.934734994Z][main.statehandler     ] sending to Dashboard: starting
com.docker.backend[35502]: [23:38:34.934779679Z][main.engines.unix     ] Setting up VM directory: "/home/user/.docker/desktop/vms/0"
com.docker.backend[35502]: [23:38:34.934845404Z][main.engines.unix     ] gather kernel command line arguments
com.docker.backend[35502]: [23:38:34.934873337Z][main.engines.unix     ] VM will connect to host using tcp+connect://192.168.x.x:xxxx
com.docker.backend[35502]: [23:38:34.934899837Z][main.engines.unix     ] initializing the qemu process virtiofs filesharing mode
com.docker.backend[35502]: [23:38:34.934920146Z][main.events           ] adding server timestamp to event (unix): 1742859514934917922 (preparing VM for startup)
com.docker.backend[35502]: [23:38:34.934954722Z][main.statehandler     ] sending to Dashboard: starting
com.docker.backend[35502]: 2025/03/24 19:38:34 INFO : hyperkit: Create "/home/user/.docker/desktop/vms/0/data/Docker.raw"
com.docker.backend[35502]: 2025/03/24 19:38:34 INFO : hyperkit: Resize "/home/user/.docker/desktop/vms/0/data/Docker.raw" from 0MiB to 1048576MiB

I tried the solution I found here, to just delete the file and hope for an error, that would then let me in the GUI so I could change the disk size setting, but so far that hasn’t worked. I’ll keep trying or see if I can find the config files to change this from outside of the GUI.

Update - Deleting the Docker.raw file didn’t help; Docker Desktop didn’t give an error after a long time of waiting and when I relaunched it, just creates the file again. I created creating an empty file, but the app just starts auto growing the file when it launches.

So, I removed permission from the file and then it threw an error. However, the only options were to collect diagnostic data or Reset to Factory settings. The only option that would let me into the GUI long enough to see that the default disk size is set to 1TB, is to click the button to reset to factory and then not close the next pop-up. I tried making the change, but after it relaunches, it does reset the settings back to factory. I will let this run overnight and almost completely fill up my disk so I can hopefully change this setting successfully. :frowning:

This seems like an oversight that we can’t get to this setting to change it until this HUGE disk file is created or that we’re not asked what we’d like before the app starts.

I waiting for the file to be created and it did stop at 1.1TB, then allowed me to get into the GUI and make the change. I set it to 24GB for now to test. It deleted the 1.1TB file and created a 25.8GB new Docker.raw file. Success. I was then able to find the config file that changed and tested changing this setting manually in the config.

Here’s a fix I tested that should help someone else who is stuck in this situation:

Run systemctl --user stop docker-desktop to kill docker desktop.

Edit file $HOME/.docker/desktop/settings-store.json.

Look for variable “DiskSizeMiB”. If it doesn’t exist, add it and set the value in MB. Example "DiskSizeMiB": 16000,.

Delete $HOME/.docker/desktop/vms/0/data/Docker.raw and then open docker desktop again. It will recreate the new Docker.raw file with the correct size.

Also, I tested moving the raw file to another location and found two things; a new variable “DataFolder” is added to the config and confirmed that creating a 128GB raw file on a non-encrypted disk is about instant. So, the reason it takes forever is due to the 1TB file needing to be encrypted as it’s written.

Here’s an example of my completed file content for format:

{
  "AutoStart": false,
  "DataFolder": "/mnt/2TB/docker/vms/DockerDesktop",
  "DiskSizeMiB": 122880,
  "DisplayedOnboarding": true,
  "EnableDockerAI": false,
  "LastContainerdSnapshotterEnable": 1742859509,
  "LicenseTermsVersion": 2,
  "SettingsVersion": 41,
  "UpdateInstallTime": 1742869843,
  "UseContainerdSnapshotter": true
}

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.