Docker failed to initialize. Docker Desktop is shutting down

Hi Everyone. I’m facing some issues in Docker Desktop after a recent update.

I’ve tried the following ways:

  1. Reinstalling Docker.
  2. Deleting Docker Folder in Appdata/Roaming, Appdata/Local.
  3. Installing an older version.
  4. Removing docker-desktop from WSL2.
  5. Troubleshooting WSL.

Here’s my docker diagnostics result:

Starting diagnostics

[PASS] DD0027: is there available disk space on the host?
[SKIP] DD0028: is there available VM disk space?
[FAIL] DD0031: does the Docker API work? 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_linux/v1.24/containers/json?limit=0": open //./pipe/docker_engine_linux: The system cannot find the file specified.
[FAIL] DD0004: is the Docker engine running? Get "http://ipc/docker": open \\.\pipe\dockerLifecycleServer: The system cannot find the file specified.
[2022-05-29T05:00:12.853498800Z][com.docker.diagnose.exe][I] ipc.NewClient: aae01729-com.docker.diagnose -> \\.\pipe\dockerLifecycleServer VMDockerdAPI
[linuxkit/pkg/desktop-host-tools/pkg/client.NewClientForPath(...)
[       linuxkit/pkg/desktop-host-tools/pkg/client/client.go:59
[linuxkit/pkg/desktop-host-tools/pkg/client.NewClient({0x16aa6df, 0x13})
[       linuxkit/pkg/desktop-host-tools/pkg/client/client.go:53 +0xa5
[common/pkg/diagkit/gather/diagnose.isDockerEngineRunning()
[       common/pkg/diagkit/gather/diagnose/dockerd.go:21 +0x29
[common/pkg/diagkit/gather/diagnose.(*test).GetResult(0x1c21760)
[       common/pkg/diagkit/gather/diagnose/test.go:46 +0x43
[common/pkg/diagkit/gather/diagnose.Run.func1(0x1c21760)
[       common/pkg/diagkit/gather/diagnose/run.go:17 +0x5a
[common/pkg/diagkit/gather/diagnose.walkOnce.func1(0x150f357?, 0x1c21760)
[       common/pkg/diagkit/gather/diagnose/run.go:140 +0x77
[common/pkg/diagkit/gather/diagnose.walkDepthFirst(0x2, 0x1c21760, 0xc00035f730)
[       common/pkg/diagkit/gather/diagnose/run.go:146 +0x36
[common/pkg/diagkit/gather/diagnose.walkDepthFirst(0x1, 0x1c217e0?, 0xc00035f730)
[       common/pkg/diagkit/gather/diagnose/run.go:149 +0x73
[common/pkg/diagkit/gather/diagnose.walkDepthFirst(0x0, 0xcb00000012?, 0xc00035f730)
[       common/pkg/diagkit/gather/diagnose/run.go:149 +0x73
[common/pkg/diagkit/gather/diagnose.walkOnce(0x15ea960?, 0xc00035f890)
[       common/pkg/diagkit/gather/diagnose/run.go:135 +0xcc
[common/pkg/diagkit/gather/diagnose.Run(0x1c21f60, 0x15e4300?, {0xc00035fb20, 0x1, 0x1})
[       common/pkg/diagkit/gather/diagnose/run.go:16 +0x1cb
[main.checkCmd({0xc0000703d0?, 0xc0000703d0?, 0x4?}, {0x0, 0x0})
[       common/cmd/com.docker.diagnose/main.go:132 +0x105
[main.main()
[       common/cmd/com.docker.diagnose/main.go:98 +0x27f
[2022-05-29T05:00:12.855716200Z][com.docker.diagnose.exe][I] (87e24d49) aae01729-com.docker.diagnose C->S VMDockerdAPI GET /docker
[2022-05-29T05:00:12.856243800Z][com.docker.diagnose.exe][W] (87e24d49) aae01729-com.docker.diagnose C<-S NoResponse GET /docker (527.6µs): Get "http://ipc/docker": open \\.\pipe\dockerLifecycleServer: The system cannot find the file specified.
[2022-05-29T05:00:12.856766900Z][com.docker.diagnose.exe][I] (87e24d49-1) aae01729-com.docker.diagnose C->S VMDockerdAPI GET /ping
[2022-05-29T05:00:12.857290300Z][com.docker.diagnose.exe][W] (87e24d49-1) aae01729-com.docker.diagnose C<-S NoResponse GET /ping (523.4µs): Get "http://ipc/ping": open \\.\pipe\dockerLifecycleServer: The system cannot find the file specified.
[2022-05-29T05:00:13.863796300Z][com.docker.diagnose.exe][I] (87e24d49-2) aae01729-com.docker.diagnose C->S VMDockerdAPI GET /ping
[2022-05-29T05:00:13.865212400Z][com.docker.diagnose.exe][W] (87e24d49-2) aae01729-com.docker.diagnose C<-S NoResponse GET /ping (1.4161ms): Get "http://ipc/ping": open \\.\pipe\dockerLifecycleServer: The system cannot find the file specified.
[2022-05-29T05:00:14.875956100Z][com.docker.diagnose.exe][I] (87e24d49-3) aae01729-com.docker.diagnose C->S VMDockerdAPI GET /ping
[2022-05-29T05:00:14.876813500Z][com.docker.diagnose.exe][W] (87e24d49-3) aae01729-com.docker.diagnose C<-S NoResponse GET /ping (857.4µs): Get "http://ipc/ping": open \\.\pipe\dockerLifecycleServer: The system cannot find the file specified.
[2022-05-29T05:00:15.889088500Z][com.docker.diagnose.exe][I] (87e24d49-4) aae01729-com.docker.diagnose C->S VMDockerdAPI GET /ping
[2022-05-29T05:00:15.889743600Z][com.docker.diagnose.exe][W] (87e24d49-4) aae01729-com.docker.diagnose C<-S NoResponse GET /ping (655.1µs): Get "http://ipc/ping": open \\.\pipe\dockerLifecycleServer: The system cannot find the file specified.
[2022-05-29T05:00:16.900401100Z][com.docker.diagnose.exe][I] (87e24d49-5) aae01729-com.docker.diagnose C->S VMDockerdAPI GET /ping
[2022-05-29T05:00:16.901015600Z][com.docker.diagnose.exe][W] (87e24d49-5) aae01729-com.docker.diagnose C<-S NoResponse GET /ping (512.8µs): Get "http://ipc/ping": open \\.\pipe\dockerLifecycleServer: The system cannot find the file specified.
[2022-05-29T05:00:17.915342300Z][com.docker.diagnose.exe][I] (87e24d49-6) aae01729-com.docker.diagnose C->S VMDockerdAPI GET /ping
[2022-05-29T05:00:17.916470200Z][com.docker.diagnose.exe][W] (87e24d49-6) aae01729-com.docker.diagnose C<-S NoResponse GET /ping (1.1279ms): Get "http://ipc/ping": open \\.\pipe\dockerLifecycleServer: The system cannot find the file specified.
[2022-05-29T05:00:18.922105300Z][com.docker.diagnose.exe][I] (87e24d49-7) aae01729-com.docker.diagnose C->S VMDockerdAPI GET /ping
[2022-05-29T05:00:18.922669900Z][com.docker.diagnose.exe][W] (87e24d49-7) aae01729-com.docker.diagnose C<-S NoResponse GET /ping (564.6µs): Get "http://ipc/ping": open \\.\pipe\dockerLifecycleServer: The system cannot find the file specified.
[2022-05-29T05:00:19.935261900Z][com.docker.diagnose.exe][I] (87e24d49-8) aae01729-com.docker.diagnose C->S VMDockerdAPI GET /ping
[2022-05-29T05:00:19.935415600Z][com.docker.diagnose.exe][W] (87e24d49-8) aae01729-com.docker.diagnose C<-S NoResponse GET /ping (153.7µs): Get "http://ipc/ping": open \\.\pipe\dockerLifecycleServer: The system cannot find the file specified.

[FAIL] DD0011: are the LinuxKit services running? failed to ping VM diagnosticsd with error: Get "http://ipc/ping": open \\.\pipe\dockerDiagnosticd: The system cannot find the file specified.
[2022-05-29T05:00:19.937587500Z][com.docker.diagnose.exe][I] ipc.NewClient: 6218a297-diagnose -> \\.\pipe\dockerDiagnosticd diagnosticsd
[common/pkg/diagkit/gather/diagnose.glob..func14()
[       common/pkg/diagkit/gather/diagnose/linuxkit.go:18 +0x92
[common/pkg/diagkit/gather/diagnose.(*test).GetResult(0x1c216e0)
[       common/pkg/diagkit/gather/diagnose/test.go:46 +0x43
[common/pkg/diagkit/gather/diagnose.Run.func1(0x1c216e0)
[       common/pkg/diagkit/gather/diagnose/run.go:17 +0x5a
[common/pkg/diagkit/gather/diagnose.walkOnce.func1(0x150f357?, 0x1c216e0)
[       common/pkg/diagkit/gather/diagnose/run.go:140 +0x77
[common/pkg/diagkit/gather/diagnose.walkDepthFirst(0x3, 0x1c216e0, 0xc00069f730)
[       common/pkg/diagkit/gather/diagnose/run.go:146 +0x36
[common/pkg/diagkit/gather/diagnose.walkDepthFirst(0x2, 0x1c21760?, 0xc00069f730)
[       common/pkg/diagkit/gather/diagnose/run.go:149 +0x73
[common/pkg/diagkit/gather/diagnose.walkDepthFirst(0x1, 0x1c217e0?, 0xc00069f730)
[       common/pkg/diagkit/gather/diagnose/run.go:149 +0x73
[common/pkg/diagkit/gather/diagnose.walkDepthFirst(0x0, 0xcb00000012?, 0xc00069f730)
[       common/pkg/diagkit/gather/diagnose/run.go:149 +0x73
[common/pkg/diagkit/gather/diagnose.walkOnce(0x15ea960?, 0xc00035f890)
[       common/pkg/diagkit/gather/diagnose/run.go:135 +0xcc
[common/pkg/diagkit/gather/diagnose.Run(0x1c21f60, 0x15e4300?, {0xc00035fb20, 0x1, 0x1})
[       common/pkg/diagkit/gather/diagnose/run.go:16 +0x1cb
[main.checkCmd({0xc0000703d0?, 0xc0000703d0?, 0x4?}, {0x0, 0x0})
[       common/cmd/com.docker.diagnose/main.go:132 +0x105
[main.main()
[       common/cmd/com.docker.diagnose/main.go:98 +0x27f
[2022-05-29T05:00:19.938198400Z][com.docker.diagnose.exe][I] (45ec4722) 6218a297-diagnose C->S diagnosticsd GET /ping
[2022-05-29T05:00:19.938198400Z][com.docker.diagnose.exe][W] (45ec4722) 6218a297-diagnose C<-S NoResponse GET /ping (0s): Get "http://ipc/ping": open \\.\pipe\dockerDiagnosticd: The system cannot find the file specified.

[PASS] DD0016: is the LinuxKit VM running?
[PASS] DD0001: is the application running?
[SKIP] DD0018: does the host support virtualization?
[PASS] DD0002: does the bootloader have virtualization enabled?
[PASS] DD0017: can a VM be started?
[PASS] DD0024: is WSL installed?
[PASS] DD0021: is the WSL 2 Windows Feature enabled?
[PASS] DD0022: is the Virtual Machine Platform Windows Feature enabled?
[FAIL] DD0025: are WSL distros installed? WSL Distribution docker-desktop is missing
[PASS] DD0026: is the WSL LxssManager service running?
[FAIL] DD0029: is the WSL 2 Linux filesystem corrupt? exit status 0xffffffff
[PASS] DD0015: are the binary symlinks installed?
An error occurred trying to connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/json: open //./pipe/docker_engine: The system cannot find the file specified.
[FAIL] DD0003: is the Docker CLI working? exit status 1
[PASS] DD0013: is the $PATH ok?
[PASS] DD0005: is the user in the docker-users group?
[FAIL] DD0007: is the backend responding? failed to ping com.docker.backend with error: Get "http://ipc/ping": open \\.\pipe\dockerBackendApiServer: The system cannot find the file specified.
[2022-05-29T05:00:24.513923700Z][com.docker.diagnose.exe][I] ipc.NewClient: fecfa8fb-diagnose -> \\.\pipe\dockerBackendApiServer BackendAPI
[common/pkg/backend.NewClientForPath({0x16a0cd2?, 0x1?}, {0xc0005422c0?, 0x150e3a9?})
[       common/pkg/backend/client.go:156 +0x3d
[common/pkg/backend.NewClient({0x16a0cd2, 0x8})
[       common/pkg/backend/client.go:151 +0x5a
[common/pkg/diagkit/gather/diagnose.glob..func9()
[       common/pkg/diagkit/gather/diagnose/ipc.go:25 +0x25
[common/pkg/diagkit/gather/diagnose.(*test).GetResult(0x1c21ae0)
[       common/pkg/diagkit/gather/diagnose/test.go:46 +0x43
[common/pkg/diagkit/gather/diagnose.Run.func1(0x1c21ae0)
[       common/pkg/diagkit/gather/diagnose/run.go:17 +0x5a
[common/pkg/diagkit/gather/diagnose.walkOnce.func1(0x2?, 0x1c21ae0)
[       common/pkg/diagkit/gather/diagnose/run.go:140 +0x77
[common/pkg/diagkit/gather/diagnose.walkDepthFirst(0x1, 0x1c21ae0, 0xc00039d730)
[       common/pkg/diagkit/gather/diagnose/run.go:146 +0x36
[common/pkg/diagkit/gather/diagnose.walkDepthFirst(0x0, 0xcb00000012?, 0xc00039d730)
[       common/pkg/diagkit/gather/diagnose/run.go:149 +0x73
[common/pkg/diagkit/gather/diagnose.walkOnce(0x15ea960?, 0xc00035f890)
[       common/pkg/diagkit/gather/diagnose/run.go:135 +0xcc
[common/pkg/diagkit/gather/diagnose.Run(0x1c21f60, 0x15e4300?, {0xc00035fb20, 0x1, 0x1})
[       common/pkg/diagkit/gather/diagnose/run.go:16 +0x1cb
[main.checkCmd({0xc0000703d0?, 0xc0000703d0?, 0x4?}, {0x0, 0x0})
[       common/cmd/com.docker.diagnose/main.go:132 +0x105
[main.main()
[       common/cmd/com.docker.diagnose/main.go:98 +0x27f

2022/05/29 10:30:31 exit status 0xffffffff

If your Windows user is not the Administrator, try to add it to the “docker-users” group

I’ve tried this earlier too.
Getting this:

System error 1378 has occurred.

The specified account name is already a member of the group.