[Solved] Compose in WSL2 Ubuntu 24.04: installed but does not pull

On my laptop running Win10 I configured WSL2 with Ubuntu 24.04 and succesfully installed Docker Compose on it, this is the output I get:

# docker compose version
Docker Compose version v2.29.1

However any pull request hangs and teminate sometime with “connection reset by peer” sometime with “i/o timeout”

I live in China, therefore I suspect that the local internet policies may have something to do with this problem, is there anyone that may give me some hint or debug procedures?

A short google search yields that indeed it seems that Docker Hub can’t be used in China.

You can find posts like this:

You will need to find a local mirror, and configure it as mirror in /etc/docker/daemon.json.

Yes @meyay , I also found that link short time after sending the post :anguished:

I found this link to configure the daemon.json but apparenty also these servers are not wotking. I’ll keep searching for something more updated.

###UPDATE###
The hubs are working! Just it needs to add a trailing slash to the address like:

"https://docker.m.daocloud.io/",
1 Like