Experienced a strange issue today while rebuilding one of my Python containers which was failing on
The problem is strange because internet works fine on my host system (that also uses Google's 184.108.40.206). Seems to be a temporary issue, possibly because of a DNS change on part of the python module registry pythonhosted.org, but I can't be sure.``` ---> fc2678812fdf Step 9/11 : RUN python -m pip install --no-cache-dir -r requirements.txt ---> Running in 50711357a3eb Collecting aiohttp (from -r requirements.txt (line 1)) Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(
Switching to another DNS service fixes the issue.
[sudo] vi /etc/docker/daemon.json
- Set the DNS resolvers to something new
"dns": ["220.127.116.11", "18.104.22.168", "22.214.171.124"]
126.96.36.199which is Cloudflare's new DNS service.
- Restart the docker daemon:
[sudo] systemctl restart docker
- Rebuild your container