https://rancher.com/ logo
Title
e

echoing-carpenter-38694

05/22/2023, 8:07 PM
Any ideas why proxies configured in /.docker/config.json are not picked up by nerdctl? It works with dockerd but having trouble when swapping to containerd behind a proxy. nerdctl is acting flakey with my proxy, it'll do a nerdctl build using a particular base image, but nerdctl pull on the same base image will time out due to it not using the proxy i think. I've configured the proxy both as an export in rc.conf as well as in .docker/config.json
w

wide-mechanic-33041

05/22/2023, 8:19 PM
proxy is still heavily DIY. https://github.com/rancher-sandbox/rancher-desktop/labels/area%2Fproxy has some gems in there, but you have to dig. mac or windows?
e

echoing-carpenter-38694

05/22/2023, 8:23 PM
windows
w

wide-mechanic-33041

05/22/2023, 8:24 PM
i have had good luck w using WSLENV for basic images, but be aware managing no_proxy to keep cluster flows from trying to hit your proxy is a mess
e

echoing-carpenter-38694

05/22/2023, 8:25 PM
yeah i've read through a lot of them, .. I'm exporting the proxy variables in my rc.conf which worked for dockerd , but not nerdctl .. So are you WSLENV to the rancher-desktop wsl instance and then doing a nerdctl pull for it to work?
w

wide-mechanic-33041

05/22/2023, 8:26 PM
yup WSLENV injects /etc/env earlier before containerd starts and found it seemed to to the trick
e

echoing-carpenter-38694

05/22/2023, 8:30 PM
ah that does seem to work for nerdctl thank you!
👍 1
w

wide-mechanic-33041

05/22/2023, 8:36 PM
hopefully we should see the early work on a RD managed proxy in the near term as it remains in that 1.9 milestone
👍 1