-
-
Notifications
You must be signed in to change notification settings - Fork 396
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
Networking issue on M1 Colima + Docker engine runtime #222
Comments
@B-0-B-B-Y are you behind a proxy or VPN ? |
I have Cisco AnyConnect installed, but when trying this I'm not connected via the VPN, just directly to my home router via WiFi. Does the presence of the VPN created network interfaces interfere with Colima? |
Yeah, there are known issues with VPN at the moment. |
Have tried with the --dns options as well yeah, I tried |
This is a very strange scenario. Can you try using the containerd runtime and see if the behaviour is same.
|
Using the containerd runtime, pinging google.com does in fact resolve correctly. Will try and build one of our images with those external IP dependencies now and see if that can build successfully through containerd as well. Like you said, this is a very strange scenario indeed... |
@abiosoft on containerd, am getting issues resolving some packages with apt install:
|
@B-0-B-B-Y it is likely related to this #140. Though the issues reported are linked to heavy network load and yours does not look like a heavy network load. Nonetheless a fix is imminent. And I would appreciate if you can stick around and help with testing the fix when it is pushed. |
Okay thanks for the heads up, just read through the thread, any idea when this change is scheduled to release? And yes, will be testing the new version which hopefully solves the issues we're facing (would really prefer to not have to go back to docker desktop) |
It should be available for testing by weekend. I would prefer some user feedback before pushing a release. Thanks. |
@abiosoft sure, feel free to ping me on here when it becomes available for testing, will try it out 👍 |
Just to add in, I'm having the exact same issue on a new M1 running 12.3, even after updating colima to HEAD. Apologies, I've included a lot:
Running a similar test:
I followed this issue here from #140 and also ran the jordi/ab test with the same negative results:
Lastly, followed and repeated your test with containerd as above but it did not succeed; DNS seems to be resolving fine, but for some hosts I still end up with DUP packets returned:
I'd be happy to update and test any patches aiming to address this issue. |
The same version encountered the same problem, apt-get randomly failed to compile some packages during the process of compiling the container, resulting in the container not being compiled properly. |
I'm on a MBP with M1 too, and started noticing these network problems in containers today. Cisco Anyconnect VPN is installed on my computer, but the problem occurs without being connected to the VPN. Also, this never happened before with Colima. Some bits of info that might help identify the problem: Executing If I start a container like this: Then install a dependency like this It actually works! So apparently it can connect to the ubuntu servers. But if I now try to ping the same (or any other) server, it fails:
If I start Colima with However, the behavior mentioned above is unchanged.
|
Kindly install the current development version with Thanks. |
Thank you @abiosoft I'm running into an error when trying to create a new VM with the new version:
|
Can you kindly share the output of |
Sure! Seems like it is looking for files in your home directory "/Users/abiola" :) dyld[95676]: Library not loaded: /Users/abiola/projects/golang/colima/_build/network/dist/x86_64/lib/libvdeplug.3.dylib |
Oh, I need to include the library. Thanks. |
@khalo-sa can you try again? |
sure @abiosoft , I reinstalled via
Then I deleted the old vm This time, the creation process was not interrupted. However, I still got this warning:
And indeed, the file "/Users/khalosa/.colima/network/vmnet.ptp" is not there. So maybe not surprising, the weird networking behavior is still unchanged, e.g. |
@abiosoft I have tested a couple more times, and always get the warning about the missing "~/.colima/network/vmnet.ptp". |
@khalo-sa can you kindly share the contents of |
❯ cat /etc/sudoers.d/colima |
@khalo-sa yes, you can create a new issue. Kindly specify the version you tested with in the issue. Thanks. |
Installed the master version of colima, but encountered other problems. Where should I redirect my DOCKER_HOST to in order to connect to colima's server ? |
% colima status % colima stop % colima start I searched the issue and found colima's docker.sock in ~/.colima/docker.sock, so I specified it with DOCKER_HOST, but still had problems % docker ps What I want to know is where is the docker.sock for colima? I don't find a file for it in ~/.colima/ below is some logs: % brew reinstall colima like this:
|
That is expected if you are using the containerd runtime, as it doesn't start the docker server. |
@abiosoft Tried with Output of colima ls:
|
@B-0-B-B-Y @snacktary @khalo-sa I finally found the issue and should be fixed on m1 devices now. Some users have reported success on m1 devices. |
thank you for your efforts @abiosoft , unfortunately still not working.
|
@khalo-sa sorry, can you kindly clear the I will look for a way to integrate resetting the network setup. |
@abiosoft no sorry, thank you for your great work. Your assumption was correct, it is working now. At first sight it looks like all the network issues are gone. I can also confirm the reduced upload speed from #232 .
Colima (vmnet)
No dealbreaker for me, I prefer a stable network over high upload speed 👍 |
@abiosoft Awesome, checking out newest HEAD release + clearing Only problem I can see now is that networking doesn't seem to work if I connect to Cisco VPN. So if I build images without VPN, everything works fine, then when I get onto the company VPN in order to be able to push the image to our private repository, I get connection timeouts on the push, which wasn't happening before, as I have pushed images to our private repository before using colima + VPN. Any ideas? |
@B-0-B-B-Y |
@abiosoft I'm unable to push using IP neither, and trying to use vmnet as the dns setting doesn't change anything unfortunately. Our IT department manages our VPN configuration, and I had a look, split tunneling is disabled for us, not sure if that affects anything but figured it's worth mentioning on here. My guess is that it does affect things, because running colima ls, I can see that colima vm gets given a 192.168.x.x address, but when connected to the VPN, I don't have access to those IP ranges |
@B-0-B-B-Y @khalo-sa can you try the current main branch? Kindly note that there there are some underlying changes to how the configs are now saved. If you do not want your workloads affected you can simply back up |
Device: M1 Macbook 2020
OS: Monterey
Colima info:
Colima setup steps taken:
I am unable to access/resolve external IPs from inside any docker container built with colima. This prevents me from building images properly as required files cannot be installed. A simple example I did to carry verify networking wasn't working correctly:
Error I am seeing when building one of our actual images that requires installation of some files from a remote IP address:
Is there something I am missing / not doing correctly? I tried running the docker build command with --network=host, but didn't help either?
The text was updated successfully, but these errors were encountered: