user17362082
user17362082

Reputation:

Docker failed to initialize. Docker Desktop is shutting down

I run Windows 11 and when I try to start Docker desktop app it gives me the following error: Docker failed to initialize. Docker Desktop is shutting down.

I have tried several thing before posting this:

  1. Uninstalled Docker desk app and installed it again.
  2. Uninstalled it, restarted the computer, updated WSL 2 and installed the app again.

How can I fix it? Any suggestions? Thanks.

Upvotes: 3

Views: 8802

Answers (5)

Sudarshan Nagre
Sudarshan Nagre

Reputation: 27

Try by deleting the following folders- C:\Users\Admin\AppData\Roaming\Docker and C:\Users\Admin\AppData\Roaming\Docker Desktop

It works for me.

Upvotes: 0

jperelli
jperelli

Reputation: 7197

I tried all the "delete settings.json" solutions and didn't work for me. This is what worked:

  1. Open task manager
  2. Type "docker"
  3. kill it
  4. reopen docker desktop

Upvotes: 5

Jar Yit
Jar Yit

Reputation: 985

I’ve deleted %appdata%\Docker and %appdata%\Docker Desktop. After that everything is OK for me.

Upvotes: 0

Mr. Morgan
Mr. Morgan

Reputation: 1

I have encountered the same problem too and already try many solution found on the internet.

I have found this issue and manually run C:\Program Files\Docker\Docker\resources\com.docker.backend.exe, then I got this error.

[2022-07-23T13:14:00.191660000Z][com.docker.backend.exe][E] 
verifying docker scan plugin config: saving JSON: open 
<HOME>\.docker\scan\config.json: Access is denied.
[main.main()
[       common/cmd/com.docker.backend/main.go:96 +0x85

After removing '.docker/config.json' in C:\Users\{YOUR_USERNAME} folder, everything works fine after restarting docker desktop.

Hope my answer help.

Upvotes: 0

omokaybee
omokaybee

Reputation: 131

Go to C drive , Users, Select your user, App data, Roaming and then delete the Docker folder. You shall be able to start docker again.

Upvotes: 13

Related Questions