This error is occurring today on an Alpine Linux server that had been working normally for several months. The last time I did a pull was a few weeks ago.
Error:
# docker --log-level debug pull alpine:latest
Error response from daemon: Get "https://registry-1.docker.io/v2/": read tcp 192.168.100.214:37344->23.23.116.141:443: read: connection reset by peer
Details
OS: Alpine Linux v3.13 (3.13.4)
Docker version 20.10.3, build 48d30b5b32e99c932b4ea3edca74353feddd83ff
Current containers are running normally on the server.
There is no proxy server between this server and the internet, only a corporate firewall.
The firewall hasn’t been modified since before docker was installed on this server.
The errors are occurring both before and after an OS update.
I have a CentOS 7 server on the same subnet that is working correctly.
I have confirmed connectivity to the url
time="2021-04-02T13:22:10.881465261-04:00" level=warning msg="Error getting v2 registry: Get \"https_//registry-1.docker.io/v2/\": read tcp 192.168.100.214:59826->35.169.249.115:443: read: connection reset by peer"
time="2021-04-02T13:22:10.881592163-04:00" level=info msg="Attempting next endpoint for pull after error: Get \"https_//registry-1.docker.io/v2/\": read tcp 192.168.100.214:59826->35.169.249.115:443: read: connection reset by peer"
time="2021-04-02T13:22:10.890732936-04:00" level=error msg="Handler for POST /v1.41/images/create returned error: Get \"https_//registry-1.docker.io/v2/\": read tcp 192.168.100.214:59826->35.169.249.115:443: read: connection reset by peer"
(links in log have been modified to avoid new user link posting limit)
I have installed docker on a VM using VMware workstation. 192.168.139.139 is the custom NAT network that I have added to the VM. VMware workstation version is 16.1.2 build-17966106.
Now, this is not an OS issue as I tried the same on CentOS 7 and CentOS 8.
1.) Disabled firewall.
2.) Updated DNS to 8.8.8.8
3.) Confirmed that there are no proxy used outside VM.
4.) Confirmed that there are no proxy configured for proxy as well using below command:
sudo systemctl show --property=Environment docker
5.) Journalctl logs does not have much info to troubleshoot further.
I do have the same problem but only on some NAT IPs. It’s working fine on eg. 129.41.46.1, 129.41.46.2 but failing on eg. 129.41.46.0, 129.41.46.3, 129.41.46.4 - are some of those IPs blocked on a docker.io side? Any help would be much appreciated.