MacOS: Change the DNS Resolution
See original GitHub issueProblem Description
In the environment that we are working in, it seems that for some reason, it is the DNS resolution doesn’t work out of the box with Rancher Desktop. Images can’t be pull
I have already fixed the issue on Windows. We have a procedure to connect to the Rancher Desktop WSL and update the resolv.conf (there is a few more steps to do that but that’s the basics). This works very well.
> wsl -d rancher-desktop
# cat /etc/resolv.conf
nameserver 1.1.1.1
Now the problem is with MacOS… I assume that Rancher Desktop also runs some kind of VM (Lima?). We need a way to change this on MacOS’s Rancher Desktop? Doing it at the MacOS system level doesn’t work.
Proposed Solution
I would suggest the following
Either: There should be a way to configure this for MacOS and this way should be documented (ideally can be documented for Windows as well)
Either: Rancher Desktop should be able to use the host name resolution (unsure what the problem is to be honest)
Additional Information
No response
Preflight Checklist
- I have searched the issue tracker for a feature request that matches the one I want to file, without success.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:10 (5 by maintainers)
I’ve also experienced a DNS resolution issue so I couldn’t pull any image or login to docker hub, but finally, I’ve worked out the solution, and maybe it will turn out useful:
# Docker network issues when using Rancher Desktop on Mac with Apple Silicon ARM-based processor (M1 chip) - readme.md
Best regards, Maciej
Hi! The solution from @DidierHoarau doen’t work for me and my colleague. The VM seems not to be interesed in any
override.yaml
.