<p>I have installed Rancher Desktop.  It is working perfectly except for the inability for nerdctl and k3s to download docker images from hub.docker.com from behind my corporate firewall.</p>
<p>Question 1: After downloading Rancher Desktop, how do I set my corporate proxy credentials such that Kubernetes (with Rancher Desktop) pulls images from hub.docker.com.</p>
<p>Question 2: After downloading Rancher Desktop, how do I set my corporate proxy credentials such that the following command works from behind my corporate firewall.</p>
<pre><code>% nerdctl run --name jerrod-mysql-test -e MYSQL_ROOT_PASSWORD=password -p 7700:3306 mysql:8.0

INFO[0000] trying next host                              error=&quot;failed to do request: Head \&quot;https://registry-1.docker.io/v2/library/mysql/manifests/8.0\&quot;: dial tcp: lookup registry-1.docker.io on xxx.xxx.x.x:53: no such host&quot; host=registry-1.docker.io
FATA[0000] failed to resolve reference &quot;docker.io/library/mysql:8.0&quot;: failed to do request: Head &quot;https://registry-1.docker.io/v2/library/mysql/manifests/8.0&quot;: dial tcp: lookup registry-1.docker.io on xxx.xxx.x.x:53: no such host 
</code></pre>

<p>I am using mac. In mac. machine, add proxy details to /etc/conf.d/docker file.</p>
<pre><code>#rdctl shell

#sudo su -

#vi  /etc/conf.d/docker
 
 
NO_PROXY=&quot;localhost,127.0.0.1&quot;

HTTPS_PROXY=&quot;http://HOST:PORT&quot;

HTTP_PROXY=&quot;http://HOST:PORT&quot;
 
export HTTP_PROXY

export HTTPS_PROXY

export NO_PROXY
</code></pre>
