for-win icon indicating copy to clipboard operation
for-win copied to clipboard

Docker Desktop - Unexpected WSL error

Open owenxav opened this issue 3 years ago • 1 comments

Description

l HTTP proxy [2023-10-27T08:53:05.525369300Z][com.docker.diagnose.exe.httpproxy][I] HTTP 0 CONNECT docker-pinata-support.s3.amazonaws.com:443: with direct connection [2023-10-27T08:53:05.887922700Z][com.docker.diagnose.exe.httpproxy][I] HTTP 0 CONNECT docker-pinata-support.s3.amazonaws.com:443: 200 OK [2023-10-27T08:53:05.901569600Z][com.docker.diagnose.exe.httpproxy][I] HTTP 0 CONNECT docker-pinata-support.s3.amazonaws.com:443: proxying to docker-pinata-support.s3.amazonaws.com:443 [2023-10-27T08:53:08.625775700Z][com.docker.diagnose.exe][I] Uploaded diagnostics to: https://docker-pinata-support.s3.amazonaws.com/incoming/3/93A2E751-6793-4EDD-A774-A425EAE12A01/20231027085218.zip Diagnostics ID: 93A2E751-6793-4EDD-A774-A425EAE12A01/20231027085218 (uploaded)

Reproduce

C:\Program Files\Docker\Docker\resources>docker run "docker run" requires at least 1 argument. See 'docker run --help'.

Usage: docker run [OPTIONS] IMAGE [COMMAND] [ARG...]

Create and run a new container from an image

C:\Program Files\Docker\Docker\resources>docker kill "docker kill" requires at least 1 argument. See 'docker kill --help'.

Usage: docker kill [OPTIONS] CONTAINER [CONTAINER...]

Kill one or more running containers

C:\Program Files\Docker\Docker\resources>docker rm "docker rm" requires at least 1 argument. See 'docker rm --help'.

Usage: docker rm [OPTIONS] CONTAINER [CONTAINER...]

Remove one or more containers

Expected behavior

No response

docker version

C:\Program Files\Docker\Docker\resources>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: The system cannot find the file specified.
Client:
 Cloud integration: v1.0.35+desktop.5
 Version:           24.0.6
 API version:       1.43
 Go version:        go1.20.7
 Git commit:        ed223bc
 Built:             Mon Sep  4 12:32:48 2023
 OS/Arch:           windows/amd64
 Context:           default

docker info

C:\Program Files\Docker\Docker\resources>docker info
Client:
 Version:    24.0.6
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.11.2-desktop.5
    Path:     C:\Program Files\Docker\cli-plugins\docker-buildx.exe
  compose: Docker Compose (Docker Inc.)
    Version:  v2.22.0-desktop.2
    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.8
    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: Docker Scout (Docker Inc.)
    Version:  v1.0.7
    Path:     C:\Program Files\Docker\cli-plugins\docker-scout.exe

Server:
ERROR: 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/info": open //./pipe/docker_engine: The system cannot find the file specified.
errors pretty printing info

Diagnostics ID

93A2E751-6793-4EDD-A774-A425EAE12A01/20231027085218

Additional Info

Please kindly tell me steps to resolve this issues

owenxav avatar Oct 27 '23 09:10 owenxav

you can follow the solution given in https://github.com/docker/for-win/issues/12548

Some other things, if you are using Windows,check that virtualization is enabled { you can check this by going to task manager to performance, there you can see the virtualization is enabled or not,}

After following steps the step in https://github.com/docker/for-win/issues/12548 issue and enabling the virtualization in my computer it worked.

danisherror avatar Oct 27 '23 10:10 danisherror