colima: Docker cannot pull images
Hi,
i just installed colima on a MacBook Pro wit BigSur 11.6.2
colima version 0.3.2
git commit: 272db4732b90390232ed9bdba955877f46a50552
runtime: docker
arch: x86_64
client: v20.10.12
server: v20.10.11
When i want to pull in docker, I get an i/o timeout error. It seems that the colima system doesn’t have internet connection.
docker pull maven Using default tag: latest Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on 192.168.5.3:53: read udp 192.168.5.15:56157->192.168.5.3:53: i/o timeout
Are there any post-install steps to get a connection?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 11
- Comments: 37 (9 by maintainers)
I also faced the same issue but its resolved by specifying DNS resolver
Does anyone have Cisco AnyConnect installed?
I have an intel mac that I just upgraded from Catalina to Monterey. Since the upgrade, I’ve been experiencing various network timeouts, but the dns issues in colima were the most pronounced as they blocked my use of
docker pull
. Outside of Colima, git was often hanging as well, so I didn’t think it was a uniquely colima issue, so I kept looking after I found this issue.I have Cisco AnyConnect installed which I occasionally use to connect to a VPN. After the Monterey update, “Cisco AnyConnect Socket Filter” showed up and asked for permission to run a new SystemExtension. I allowed it at that point, but I think that was the culprit behind all my network issues. Here are some other issues people experienced with it: https://apple.stackexchange.com/questions/420773/the-process-com-cisco-anyconnect-macos-acsockext-hogs-mac-cpu-but-cannot-be-kill
This service is suspicious (to me) because its “features” are (based on the docs):
So, I just deleted Cisco AnyConnect Socket Filter (deleted it from the Applications) which removed the SystemExtension. And, I stopped its annoying “notification” service from pestering me about it on reboot.
After doing all of that (and another reboot), dns works in colima again!
Can anyone try the lastest development version and see if anything changes?
@abiosoft Yes that seems to fix things. I ended up using
192.168.5.2
, the host, since work runs a dns proxy on my laptop. This way I can resolve private addresses not on the public DNS.This is a good overview of DNS issues in Alpine and might be at the core of some of these DNS issues:
https://support.cloudbees.com/hc/en-us/articles/360040999471-UnknownHostException-caused-by-DNS-Resolution-issue-with-Alpine-Images
Their main fix was to migrate to RedHat’s Universal Base Images (UBI) - https://developers.redhat.com/products/rhel/ubi
There is a workaround as well, that I will try when I have a bit of time to test it.