Docker on Windows fails to pull mcr.microsoft.com/devcontainers/base:0-alpine-3.20 due to connection reset

I am using Docker Desktop on Windows with WSL 2 and trying to pull the following image:

docker pull mcr.microsoft.com/devcontainers/base:0-alpine-3.20

However, the image does not download. Running:

docker manifest inspect mcr.microsoft.com/devcontainers/base:0-alpine-3.20

returns:

failed to configure transport: error pinging v2 registry: Get "https://mcr.microsoft.com/v2/": read tcp [2603:8001:5e00:431b:8ee:de0e:d5ac:7788]:54158->[2603:1061:f:101::10]:443: wsarecv: An existing connection was forcibly closed by the remote host.

What I have checked/tried:

:white_check_mark: Docker setup:

  • Running Docker Desktop 4.38.0 (latest)
  • Docker Linux container mode is active (OSType: linux)
  • WSL 2 is enabled, and Docker is using it (wsl --list --verbose confirms docker-desktop is running with version 2)

:white_check_mark: Network connectivity:

  • Running
Test-NetConnection mcr.microsoft.com -Port 443

confirms that the registry is reachable (TcpTestSucceeded: True).

  • Opening https://mcr.microsoft.com/v2/ in a browser returns {}, meaning the registry is responding.
  • Other images pull successfully (docker pull alpine:latest works fine).

:x: Problem persists with:

  • docker pull mcr.microsoft.com/devcontainers/base:alpine-3.20
  • docker pull --platform=linux/amd64 mcr.microsoft.com/devcontainers/base:alpine-3.20

Question:

Why does Docker fail to pull this image with wsarecv: An existing connection was forcibly closed by the remote host? Could this be an issue with Docker Desktop’s networking stack, Microsoft Container Registry, or something else?

Any insights or workarounds would be greatly appreciated!

Since the pull from Docker Hub works, it’s unlikely the Docker Desktop networking stack has issues.

Your problem is while accessing another registry, so there is not much to help with here. You might want to raise an issue @MCR.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.