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

Get "https://registry-1.docker.io/v2/" results in "target machine actively refused it."

Open TJ-jack opened this issue 1 year ago • 0 comments

Description

I have Docker Desktop version 4.32.0 Install on Windows 10 and it gives belwo errors whenever I try to run - "what is a container" . IT didnt happened with previous version. I have installed it over and over each time it installs completely with WSL 2 support but gets stuck at this point.

C:\Users>docker pull curlimages/curl Using default tag: latest

What's next: View a summary of image vulnerabilities and recommendations → docker scout quickview curlimages/curl Error response from daemon: Get "https://registry-1.docker.io/v2/": writing response to registry-1.docker.io:443: connecting to 127.0.0.1:9000: dial tcp 127.0.0.1:9000: connectex: No connection could be made because the target machine actively refused it.

C:\Users>docker search curl Error response from daemon: Get "https://index.docker.io/v1/search?q=curl&n=25": writing response to index.docker.io:443: connecting to 127.0.0.1:9000: dial tcp 127.0.0.1:9000: connectex: No connection could be made because the target machine actively refused it.

Reproduce

Launch Docker Desktop

  1. Use UI --> Images search bar to search Curl and no results shows.
  2. using command prompt (CMD) , docker pull and docker search fils with errors mentioned above.

Expected behavior

"Docker search curl" should have provided a list of maching images.

Error is --> C:\Git>docker search curl Error response from daemon: Get "https://index.docker.io/v1/search?q=curl&n=25": writing response to index.docker.io:443: connecting to 127.0.0.1:9000: dial tcp 127.0.0.1:9000: connectex: No connection could be made because the target machine actively refused it.

however the Url resolves correctly in Browser and shows the results. Even Curl on CMD shows the results but not through docker.

docker version

C:\Git>docker version
Client:
 Version:           27.0.3
 API version:       1.46
 Go version:        go1.21.11
 Git commit:        7d4bcd8
 Built:             Sat Jun 29 00:03:32 2024
 OS/Arch:           windows/amd64
 Context:           desktop-linux

Server: Docker Desktop 4.32.0 (157355)
 Engine:
  Version:          27.0.3
  API version:      1.46 (minimum version 1.24)
  Go version:       go1.21.11
  Git commit:       662f78c
  Built:            Sat Jun 29 00:02:50 2024
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.7.18
  GitCommit:        ae71819c4f5e67bb4d5ae76a6b735f29cc25774e
 runc:
  Version:          1.7.18
  GitCommit:        v1.1.13-0-g58aa920
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

docker info

C:\Git>docker info
Client:
 Version:    27.0.3
 Context:    desktop-linux
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.15.1-desktop.1
    Path:     C:\Program Files\Docker\cli-plugins\docker-buildx.exe
  compose: Docker Compose (Docker Inc.)
    Version:  v2.28.1-desktop.1
    Path:     C:\Program Files\Docker\cli-plugins\docker-compose.exe
  debug: Get a shell into any image or container (Docker Inc.)
    Version:  0.0.32
    Path:     C:\Program Files\Docker\cli-plugins\docker-debug.exe
  desktop: Docker Desktop commands (Alpha) (Docker Inc.)
    Version:  v0.0.14
    Path:     C:\Program Files\Docker\cli-plugins\docker-desktop.exe
  dev: Docker Dev Environments (Docker Inc.)
    Version:  v0.1.2
    Path:     C:\Program Files\Docker\cli-plugins\docker-dev.exe
  extension: Manages Docker extensions (Docker Inc.)
    Version:  v0.2.25
    Path:     C:\Program Files\Docker\cli-plugins\docker-extension.exe
  feedback: Provide feedback, right in your terminal! (Docker Inc.)
    Version:  v1.0.5
    Path:     C:\Program Files\Docker\cli-plugins\docker-feedback.exe
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v1.3.0
    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
  scout: Docker Scout (Docker Inc.)
    Version:  v1.10.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-scout.exe

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 0
 Server Version: 27.0.3
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: ae71819c4f5e67bb4d5ae76a6b735f29cc25774e
 runc version: v1.1.13-0-g58aa920
 init version: de40ad0
 Security Options:
  seccomp
   Profile: unconfined
 Kernel Version: 5.15.153.1-microsoft-standard-WSL2
 Operating System: Docker Desktop
 OSType: linux
 Architecture: x86_64
 CPUs: 12
 Total Memory: 7.607GiB
 Name: docker-desktop
 ID: c42adab3-28db-4033-92ca-dcf04dd72ee8
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 HTTP Proxy: http.docker.internal:3128
 HTTPS Proxy: http.docker.internal:3128
 No Proxy: hubproxy.docker.internal
 Labels:
  com.docker.desktop.address=npipe://\\.\pipe\docker_cli
 Experimental: false
 Insecure Registries:
  hubproxy.docker.internal:5555
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No blkio throttle.read_bps_device support
WARNING: No blkio throttle.write_bps_device support
WARNING: No blkio throttle.read_iops_device support
WARNING: No blkio throttle.write_iops_device support
WARNING: daemon is not using the default seccomp profile

Diagnostics ID

123456789

Additional Info

C:\Program Files\Docker\Docker\resources>com.docker.diagnose.exe check Starting diagnostics

[2024-07-18T16:49:58.877865700Z][com.docker.diagnose.exe.ipc] b6bb3eae-diagnose -> \.\pipe\dockerBackendApiServer BackendAPI [2024-07-18T16:50:24.472304200Z][com.docker.diagnose.exe.ipc] (e13e4db0) b6bb3eae-diagnose C->S BackendAPI POST /idle/make-busy [2024-07-18T16:50:24.475983600Z][com.docker.diagnose.exe.ipc] (e13e4db0) b6bb3eae-diagnose C<-S 2895ba82-BackendAPI POST /idle/make-busy (3.6794ms): 0xc000629c08 [2024-07-18T16:50:25.473743300Z][com.docker.diagnose.exe.ipc] (e98cadcf) b6bb3eae-diagnose C->S BackendAPI GET /idle [2024-07-18T16:50:25.479794300Z][com.docker.diagnose.exe.ipc] (e98cadcf) b6bb3eae-diagnose C<-S 2895ba82-BackendAPI GET /idle (5.418ms): {"apisInFlight":{},"booted":true,"busyReason":["timed activities: map[/idle/make-busy:28.9961725s]"],"containers":0,"idle":"bool","kubernetesEnabled":false,"reduced":false,"services":0,"timedActivities":{"/idle/make-busy":"float64"},"vmPaused":false,"vmRunning":true,"vmStopped":false,"windowsContainers":false} [PASS] DD0027: is there available disk space on the host? [SKIP] DD0028: is there available VM disk space? [PASS] DD0002: does the bootloader have virtualization enabled? [SKIP] DD0018: does the host support virtualization? [PASS] DD0001: is the application running? [PASS] DD0022: is the Virtual Machine Platform Windows Feature enabled? [PASS] DD0021: is the WSL 2 Windows Feature enabled? [PASS] DD0024: is WSL installed? [PASS] DD0025: are WSL distros installed? [PASS] DD0026: is the WSL LxssManager service running? [PASS] DD0029: is the WSL 2 Linux filesystem corrupt? [PASS] DD0035: is the VM time synchronized? [PASS] DD0017: can a VM be started? [PASS] DD0016: is the LinuxKit VM running? [PASS] DD0004: is the Docker engine running? [PASS] DD0015: are the binary symlinks installed? [PASS] DD0031: does the Docker API work? [PASS] DD0013: is the $PATH ok? [PASS] DD0003: is the Docker CLI working? [FAIL] DD0005: is the user in the docker-users group? The user name could not be found. [FAIL] DD0038: is the connection to Docker working? HTTP GET https://login.docker.com: Get "https://login.docker.com": writing response to login.docker.com:443: connecting to 127.0.0.1:9000: dial tcp 127.0.0.1:9000: connectex: No connection could be made because the target machine actively refused it. [PASS] DD0014: are the backend processes running? [PASS] DD0007: is the backend responding? [SKIP] DD0009: is the vpnkit API responding? [PASS] DD0010: is the Docker API proxy responding? [PASS] DD0006: is the Docker Desktop Service responding? [SKIP] DD0030: is the image access management authorized? [PASS] DD0033: does the host have Internet access? [PASS] DD0002: does the bootloader have virtualization enabled? [PASS] DD0018: does the host support virtualization? [PASS] DD0001: is the application running? [PASS] DD0022: is the Virtual Machine Platform Windows Feature enabled? [PASS] DD0021: is the WSL 2 Windows Feature enabled? [PASS] DD0024: is WSL installed? [PASS] DD0025: are WSL distros installed? [PASS] DD0026: is the WSL LxssManager service running? [PASS] DD0029: is the WSL 2 Linux filesystem corrupt? [PASS] DD0035: is the VM time synchronized? [PASS] DD0017: can a VM be started? [PASS] DD0016: is the LinuxKit VM running? [PASS] DD0004: is the Docker engine running? [PASS] DD0015: are the binary symlinks installed? [PASS] DD0031: does the Docker API work? [PASS] DD0032: do Docker networks overlap with host IPs?

Please investigate the following 2 issues:

1 : The test: is the user in the docker-users group? Failed with: The user name could not be found.

The current user must be member of the docker-users group. Press the Win + R keys to open Run, type lusrmgr.msc into Run, followed by Enter to open Local Users and Groups.

2 : The test: is the connection to Docker working? Failed with: HTTP GET https://login.docker.com: Get "https://login.docker.com": writing response to login.docker.com:443: connecting to 127.0.0.1:9000: dial tcp 127.0.0.1:9000: connectex: No connection could be made because the target machine actively refused it.

Some functions require access to Docker, possibly through a HTTP proxy.

TJ-jack avatar Jul 18 '24 16:07 TJ-jack