Skip to content

wsl mirror mode caused docker desktop on windows cannot connect to a local proxy. #13172

Closed
@zkw13

Description

@zkw13

Windows Version

Microsoft Windows [Version 10.0.26100.4351]

WSL Version

2.5.9.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

6.6.87.2

Distro Version

Ubuntu 24.04

Other Software

Docker Desktop(Windows): 4.41.2 (191736)

Repro Steps

Turn on local proxy (v2rayN). Turn on mirror mode. Run docker pull.

Expected Behavior

docker pull succeed.

Actual Behavior

 > docker pull python:3.12-bullseye
Error response from daemon: Get "https://registry-1.docker.io/v2/": proxyconnect tcp: dial tcp 127.0.0.1:10809: connect: connection refused
# turn off mirror mode here
 > wsl --shutdown
 > docker pull python:3.12-bullseye
3.12-bullseye: Pulling from library/python
Digest: sha256:e17786b1236be8f852120c9f059dec9edd210291e72ee29a0c9832d571f04b7e
Status: Image is up to date for python:3.12-bullseye
docker.io/library/python:3.12-bullseye
# turn on mirror mode here
 > wsl --shutdown
 > docker pull python:3.12-bullseye
Error response from daemon: Get "https://registry-1.docker.io/v2/": proxyconnect tcp: dial tcp 127.0.0.1:10809: connect: connection refused
 > docker pull python:3.12-bullseye
Error response from daemon: Get "https://registry-1.docker.io/v2/": proxyconnect tcp: dial tcp 127.0.0.1:10809: connect: connection refused

Diagnostic Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions