rancher-desktop icon indicating copy to clipboard operation
rancher-desktop copied to clipboard

How to make docker daemon (Rancher desktop) work with httpProxy httpsProxy on macOS bigsur(intel core)

Open ripun opened this issue 2 years ago • 16 comments

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:

  1. I did login to lima shell using rdctl shell
  2. added /etc/docker/daemon.json
  3. modified /etc/conf.d/docker to have DOCKER_OPTS="--config-file=/etc/docker/daemon.json"
  4. restarted rancher desktop but RD startup fails due to this change with attached errors
rd_proxy_issue rd_proxy_issue_2

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

rd_proxy_issue rd_proxy_issue_2

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

ripun avatar May 23 '22 13:05 ripun