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

Proxy setting from~/.docker/config.json ignored #193

Open
sbrt opened this issue May 23, 2020 · 1 comment
Open

Proxy setting from~/.docker/config.json ignored #193

sbrt opened this issue May 23, 2020 · 1 comment
Labels

Comments

@sbrt
Copy link

sbrt commented May 23, 2020

Running the example under dobi/examples/project-setup with dobi app on a host that is behind a proxy server, docker fails during fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz. When building with docker build ., the docker builds using my proxy settings from ~/.docker/config.json

When I set the HTTP_PROXY environmental variable in the Dockerfile like so....

FROM    alpine:3.4
ENV HTTP_PROXY "<proxy>"
RUN     apk -U add bash
COPY    setup.sh /usr/bin/setup.sh
WORKDIR /code
CMD     ["/usr/bin/setup.sh"]

... and run again dobi app, everything works.

Hence, dobi ignores the docker proxy settings in ~/.docker/config.json.

This impacts portability a bit, if all Dockerfiles have to be modified with proxy settings.

Other than that, thanks a lot for the great tool :-)

@dnephin
Copy link
Owner

dnephin commented Jun 4, 2020

Thank you for the report! I think this sounds related to #189 in some ways.

I believe because the go-dockerclient version that is being used is so old it doesn't know about the ~/.docker/config.json. It's still expecting the old path ~/.dockercfg. I'm not sure if it supports proxy settings either.

Updating the dockerclient or changing to use the official docker one may fix the problem.

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

No branches or pull requests

2 participants