Docker does not start after installation
Description
Freshly installed on freshly formatted computer with Hyper-v enabled
Reproduce
Docker Desktop Installer.exe run
Installed
Restarted
And the problem when it start say me: Failed to start the Docker Engine
with this error
Newtonsoft.Json.JsonReaderException:
Unexpected character encountered while parsing value: n. Path '', line 0, position 0.
en Newtonsoft.Json.JsonTextReader.ParseValue()
en Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
en Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
en Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
en Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
en Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
en Docker.Engines.WSL2.LinuxWSL2Engine.
Expected behavior
No response
docker version
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/version": open //./pipe/docker_engine: El sistema no puede encontrar el archivo especificado.
Client:
Cloud integration: v1.0.35
Version: 24.0.2
API version: 1.43
Go version: go1.20.4
Git commit: cb74dfc
Built: Thu May 25 21:53:15 2023
OS/Arch: windows/amd64
Context: default
docker info
Client:
Version: 24.0.2
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.11.0
Path: C:\Program Files\Docker\cli-plugins\docker-buildx.exe
compose: Docker Compose (Docker Inc.)
Version: v2.19.1
Path: C:\Program Files\Docker\cli-plugins\docker-compose.exe
dev: Docker Dev Environments (Docker Inc.)
Version: v0.1.0
Path: C:\Program Files\Docker\cli-plugins\docker-dev.exe
extension: Manages Docker extensions (Docker Inc.)
Version: v0.2.20
Path: C:\Program Files\Docker\cli-plugins\docker-extension.exe
init: Creates Docker-related starter files for your project (Docker Inc.)
Version: v0.1.0-beta.6
Path: C:\Program Files\Docker\cli-plugins\docker-init.exe
sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
Version: 0.6.0
Path: C:\Program Files\Docker\cli-plugins\docker-sbom.exe
scan: Docker Scan (Docker Inc.)
Version: v0.26.0
Path: C:\Program Files\Docker\cli-plugins\docker-scan.exe
scout: Command line tool for Docker Scout (Docker Inc.)
Version: 0.16.1
Path: C:\Program Files\Docker\cli-plugins\docker-scout.exe
Server:
ERROR: error during connect: this error may indicate that the docker daemon is not running: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/info": open //./pipe/docker_engine: El sistema no puede encontrar el archivo especificado.
errors pretty printing info
Diagnostics ID
A8D3F97D-3E30-4754-821E-D31B706FEE52/20230718135627
Additional Info
No response
same problem
same here
same problem, no solution yet
Hi,
I was having a similar issue with my docker, and searched everywhere for a solution. I first went to Hyper-V manger (can be found by searching in the task bar) and made sure "DockerDesktopVM" was running by right clicking and then pressing connect. Then afterwards, I still was having trouble connecting, but I knew it was no longer a Hyper-V issue. I restarted my machine and did the same step and I was still getting that error. Then what made it work was I went into service.msc, stopped both "Docker Desktop Service" and "Docker Engine". afterwards, I started Docker Desktop, it threw an error saying docker engine was not running, went back to the services.msc window, started both Docker Engine and Docker Desktop Service and it finally started to work.