September 9, 20232 yr Hi, there. for some personal reason, I need to proxy docker when pull image. I follow some guide like that: Quote "Configure Docker To make Docker use the proxy, you will have to configure dockerd. One way to do this is to create the file /etc/systemd/system/docker.service.d/proxy.conf with the following content: [Service] Environment="HTTP_PROXY=socks5://127.0.0.1:8080" Environment="HTTPS_PROXY=socks5://127.0.0.1:8080" (You most likely do not even need the HTTP_PROXY line, but it also doesn’t hurt. ) Once this file is in place, you need to restart the Docker service: systemctl daemon-reload systemctl restart docker" but I could not find this path on unraid . does anyone could tell me what the dcoker.service.d/proxy conf or another way. I did`t want to proxy the whole unraid system or other services thanks
September 12, 20232 yr Community Expert You could try to set the DOCKER_OPTS variable in the docker.cfg in config/docker.cfg Quote DOCKER_OPTS=" -e "HTTP_PROXY=http://ip:port" -e "HTTPS_PROXY=http://ip:port"" But i have no clue if that will work. Edited September 12, 20232 yr by Mainfrezzer
September 12, 20232 yr Author Just now, Mainfrezzer said: You could try to set the DOCKER_OPTS variable in the docker.cfg in config/docker.cfg But i have no clue if that will work. thanks I`ll try later
July 14, 20241 yr On 9/12/2023 at 5:05 PM, paysen said: thanks I`ll try later I have tried this, it seems not work, and it is strange that my image has proxy.
November 30, 20241 yr Community Expert Works with 6.12.14 and any Unraid Version with Docker-Version 23+ That in your GO file will do the trick # -------------[Docker Proxy Setting]------------- mkdir -p /etc/docker/ cat<<EOF>/etc/docker/daemon.json { "proxies": { "http-proxy": "http://YOUR HTTP PROXY:PORT", "https-proxy": "http://YOUR HTTP PROXY:PORT" } } EOF # -------------------------------------------------
December 1, 20241 yr 4 hours ago, Mainfrezzer said: Works with 6.12.14 and any Unraid Version with Docker-Version 23+ That in your GO file will do the trick # -------------[Docker Proxy Setting]------------- mkdir -p /etc/docker/ cat<<EOF>/etc/docker/daemon.json { "proxies": { "http-proxy": "http://YOUR HTTP PROXY:PORT", "https-proxy": "http://YOUR HTTP PROXY:PORT" } } EOF # ------------------------------------------------- Thank you very much, it has taken effect.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.