question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ripuncommented, Sep 2, 2022
1reaction
ahoehmacommented, Jul 13, 2022

Any news here? Is there maybe an easy way to enable a proxy for rancher-desktop on windows?

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTTP Proxy Configuration | Rancher Manager
Docker Installation​. Passing environment variables to the Rancher container can be done using -e KEY=VALUE or --env KEY=VALUE . Required ...
Read more >
FAQ - Rancher Desktop Docs
This FAQ is a work in progress designed to answer the questions our users most frequently ask about Rancher Desktop.
Read more >
homebrew-core - Homebrew Formulae
a2ps 4.14 Any‑to‑PostScript filter aacgain 1.8 AAC‑supporting version of mp3gain aalib 1.4rc5 Portable ASCII art graphics library aamath 0.3 Renders mathematical expressions as ASCII art
Read more >
Using Rancher Desktop as Docker Desktop replacement on ...
As I do not want to use the built-in Kubernetes component of Rancher Desktop, I uncheck it and switching the container runtime from...
Read more >
Search Results - CVE
c allows an attacker to crash the kernel, resulting in denial of service. finish_wait can be skipped. An attack can occur in some...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found