Docker connectivity issue: apt/apk do not work inside docker container and during docker build
问题 I am struggling since two days with the following problem. Packages management systems fail when I try to run them in order to build a new container image, I tried with alpine:latest and ubuntu:latest. I get the same behavior if I try to use them from a running container, even if I use the --network host option. For example if I try to build the following container: FROM alpine:latest RUN apk update like this: docker build --no-cache -t test . I get: ERROR: http://dl-cdn.alpinelinux.org