I've done a couple of tests regarding proxy/restarting Docker and pretty much anything else you could find on the web, nothing helped. But maybe this is a DNS Issue:
docker run -it --env http_proxy=http://igwng.m086:3128 --env https_proxy=http://igwng.m086:3128 alpine:3.12.0 sh
Unable to find image 'alpine:3.12.0' locally
3.12.0: Pulling from library/alpine
df20fa9351a1: Already exists
Digest: sha256:185518070891758909c9f839cf4ca393ee977ac378609f700f60a771a2dfe321
Status: Downloaded newer image for alpine:3.12.0
/ # nslookup github.com
Server: 192.168.65.5
Address: 192.168.65.5:53
Non-authoritative answer:
Name: github.com
Address: 140.82.121.4
/ # exit
docker run -it --env http_proxy=http://igwng.m086:3128 --env https_proxy=http://igwng.m086:3128 alpine:3.15.0 sh
Unable to find image 'alpine:3.15.0' locally
3.15.0: Pulling from library/alpine
59bf1c3509f3: Already exists
Digest: sha256:21a3deaa0d32a8057914f36584b5288d2e5ecc984380bc0118285c70fa8c9300
Status: Downloaded newer image for alpine:3.15.0
/ # nslookup github.com
Server: 192.168.65.5
Address: 192.168.65.5:53
Non-authoritative answer:
Name: github.com
Address: 140.82.121.4
*** Can't find github.com: No answer
/ # exit
As the title suggests there seems to be an issue with apk/wget when using alpine:3.13.0 and higher. I have a simple Dockerfile:
When you build this Dockerfile
docker build -f Dockerfile .
However, downgrading to alpine:3.12.0 works:
I've done a couple of tests regarding proxy/restarting Docker and pretty much anything else you could find on the web, nothing helped. But maybe this is a DNS Issue: