Docker Desktop Failed to Initialize after latest upgrade

Same issue here, the way I’ve solved it was downloading the new update from docker Docker Desktop - Docker

After the install, docker has been update and atm everything is fine (volumes, images)

Thanks for the solution! how do you even know how to fix it? :nerd_face:

I’m still encountering this. I’ve pulled down the latest installer (4.14.1), uninstalled/reinstalled, and checked that the “vpnkitCIDR” subnet mask is 24.

Interestingly the “Docker Desktop Service” is running, but my WSL2 builds are unable to connect with Docker, and calling “docker stats” from CMD.EXE complains as well (so I surmise it’s not a WSL2 issue).

If helpful, the error from Windows command line is:

error during connect: This error may indicate that the docker daemon is not running.: Get “http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/version”: open //./pipe/docker_engine: The system cannot find the file specified.

I was getting this exact same “Docker failed to initialize” error.

I am on version 4.14.1, so my AppData\Roaming\Docker\settings.json already has “24”.

However, running “docker stats” from cmd, I get the following error:

WARNING: unable to unmarshal config file C:\Users\XXX\.docker\config.json: invalid character '"' after object key:value pair
C:\Users\XXX\.docker\config.json: invalid character '"' after object key:value pair

Taking a look at my “config.json”:

{
  "auths": {
    ...
  }
  "credsStore": "desktop"
}

I’m not sure how it got corrupted like this, but there is a missing comma! It should read:

{
  "auths": {
    ...
  },
  "credsStore": "desktop"
}

After fixing this issue, docker desktop came up!

1 Like