-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
(Linux) Docker build cannot connect to the internet #152
Comments
|
Weirdly enough, this issue only occurs when building Docker images with Alpine as base image. Specifically, it hangs when trying to fetch |
@theanonymousexyz I tried this on an arm64 SoC device running Ubuntu 22.04 (Jammy) with IVPN enabled and running, and while at first it looked like I had run into the same problem as you did with the alpine Docker build - that it appeared to hang for a good couple of minutes - it turned out that it just took time. I started the alpine build, saw it seemingly hung while fetchng the APKINDEX file, waited about two minutes, then left it running while I walked away and heated up some grub, which took about 6-10 minutes. When I returned I found that the docker build process had successfully fetched the APKINDEX file and that the docker build ran to completion. So I don't think that this is a problem with IVPN, especially because you said:
Since I don't know how long you waited and what your Dockerfile looks like, I have a couple of suggestions for you to run this with IVPN enabled:
My test steps:
So if your Funnily enough, the second time the docker build is run, fetching that APKINDEX file is almost instantaneous; I assume that IVPN caches it somewhere. I know it's not the docker cache because I ran Bonus: It is interesting to see the results which come up when gurgling the search string |
@Kartikeya-IYER Thanks for the tip. Unfortunately, my builds just fail when building with IVPN on. But when I boot the system with IVPN disabled, it works fine. |
Hmm... what happens if, instead of rebooting, you just stop the service using |
The problem persists. I think it has to do with the system firewall not being properly configured ( |
Hi, The issue occurs only when VPN is connected (no issues when VPN and Firewall are disabled). After some analysis, I came to the conclusion that it is not really related to the IVPN app itself. As a workaround, please, try to use VPN servers from another location. I am closing the ticket. |
Bug report
Describe your environment
Describe the problem
When running
docker build ...
ordocker buildx build ...
, Docker can't connect to the internet if fx. the Dockerfile includesRUN
commands to clone a git repo or install additional packages. Issue doesn't occur whenivpn-service
is disabled on boot, so this is definitely an IVPN issue. Unlike in #19, runningivpn firewall -lan_allow
doesn't solve the issue. Even fully disabling the firewall and disconnecting from IVPN doesn't help. Excluding the dockerd subnet from the IVPN firewall doens't help either.Steps to reproduce:
ivpn-service
Observed Results:
docker build ...
anddocker buildx build ...
can't connect to the internet.Expected Results:
docker build ...
anddocker buildx build ...
should be able to connect to the internet.The text was updated successfully, but these errors were encountered: