rancher-desktop
rancher-desktop copied to clipboard
How to make docker daemon (Rancher desktop) work with httpProxy httpsProxy on macOS bigsur(intel core)
Actual Behavior
I am using rancher desktop(docker cli) behind corporate firewall and need to use httpProxy/httpsProxy/HTTP_PROXY/HTTPS_PROXY to fetch images from public container registries. without VPN i am able to fetch images from public container registries but when connected to VPN and if proxy is configured as part of /etc/docker/daemon.json then Rancher Desktop fails to start. Based on docker documentation it seems file /etc/docker/daemon.json cannot be used for HTTP_PROXY/HTTPS_PROXY configuration
Steps to Reproduce
Steps to reproduce:
- I did login to lima shell using
rdctl shell
- added /etc/docker/daemon.json
- modified
/etc/conf.d/docker
to haveDOCKER_OPTS="--config-file=/etc/docker/daemon.json"
- restarted rancher desktop but RD startup fails due to this change with attached errors


If I remove /etc/docker/daemon.json and try to restart RD then RD restarts without any issue
I tried configuring proxy in ~/.docker/config.json but this does not help
Result
RD startup fails in k3s stage with below errors


Expected Behavior
Need some way to enable http_proxy and https_proxy as part of Rancher desktop
Additional Information
Not sure how can we leverage systemd variables as part of lima to enable HTTP_PROXY
Rancher Desktop Version
1.3
Rancher Desktop K8s Version
v1.22.6
Which container runtime are you using?
moby (docker cli)
What operating system are you using?
macOS
Operating System / Build Version
macOS Big Sur 11.5.1 Intel core i7
What CPU architecture are you using?
x64
Linux only: what package format did you use to install Rancher Desktop?
No response
Windows User Only
NA , I am running on macOS