I’m trying to build an open-sourced app that uses ‘make’ to build some images.
I’m running on Windows 10 with Docker version 20.10.7. I’m working behind a corporate VPN. I added proxies, and listed all the DNS Servers I found using ipconfig/all in the Docker daemon configuration file. Not sure what else I could check. This is the step where it fails.
RUN apt-get update && apt-get upgrade -y && apt-get autoremove -y && apt-get install -y --no-install-recommends tzdata
And I get the following error:
#5 0.367 Err:1 http://archive.ubuntu.com/ubuntu bionic InRelease
#5 0.367 Could not resolve 'archive.ubuntu.com'
#5 0.367 Err:2 http://security.ubuntu.com/ubuntu bionic-security InRelease
#5 0.367 Could not resolve 'security.ubuntu.com'
#5 0.367 Err:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
#5 0.367 Could not resolve 'archive.ubuntu.com'
#5 0.367 Err:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
#5 0.367 Could not resolve 'archive.ubuntu.com'
#5 0.369 Reading package lists...
#5 0.376 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease Could not resolve 'archive.ubuntu.com'
#5 0.376 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease Could not resolve 'archive.ubuntu.com'
#5 0.376 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease Could not resolve 'archive.ubuntu.com'
#5 0.376 W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease Could not resolve 'security.ubuntu.com'
#5 0.376 W: Some index files failed to download. They have been ignored, or old ones used instead.
#5 0.381 Reading package lists...
#5 0.387 Building dependency tree...
#5 0.387 Reading state information...
#5 0.388 Calculating upgrade...
#5 0.390 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
#5 0.395 Reading package lists...
#5 0.401 Building dependency tree...
#5 0.401 Reading state information...
#5 0.404 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
#5 0.409 Reading package lists...
#5 0.416 Building dependency tree...
#5 0.416 Reading state information...
#5 0.417 E: Unable to locate package tzdata