Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The ror generated Dockerfile does not build #17

Open
HaukeBartsch opened this issue Jan 9, 2025 · 2 comments
Open

The ror generated Dockerfile does not build #17

HaukeBartsch opened this issue Jan 9, 2025 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@HaukeBartsch
Copy link
Member

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"

@HaukeBartsch HaukeBartsch added the documentation Improvements or additions to documentation label Jan 9, 2025
@HaukeBartsch
Copy link
Member Author

Using the above settings for the proxy 'apt update' and 'conda update conda' started to work again during 'docker build'.

@ehodneland
Copy link

You also need to restart docker: sudo systemctl restart docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants