You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running 'docker build...' creates an error message that indicates that external computers (like Debians repository) could not be found. Even a simple 'apt update' fails inside the docker environment.
The reason for the behavior was that a) DNS needed to be setup correctly on the machine used to build the image (add an accessible DNS in /etc/default/docker) and b) that the Dockerfile did not contain the proxy settings used on the machine that build the container.
DNS in /etc/default/docker:
DOCKER_OPTS="--dns 8.8.8.8"
Running 'docker build...' creates an error message that indicates that external computers (like Debians repository) could not be found. Even a simple 'apt update' fails inside the docker environment.
The reason for the behavior was that a) DNS needed to be setup correctly on the machine used to build the image (add an accessible DNS in /etc/default/docker) and b) that the Dockerfile did not contain the proxy settings used on the machine that build the container.
DNS in /etc/default/docker:
DOCKER_OPTS="--dns 8.8.8.8"
Dockerfile:
ENV http_proxy="http://proxy.ihelse.net:3128"
ENV https_proxy="https://proxy.ihelse.net:3128"
The text was updated successfully, but these errors were encountered: