paysen Posted September 9, 2023 Share Posted September 9, 2023 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 Quote Link to comment
Mainfrezzer Posted September 12, 2023 Share Posted September 12, 2023 (edited) 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, 2023 by Mainfrezzer Quote Link to comment
paysen Posted September 12, 2023 Author Share Posted September 12, 2023 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 Quote Link to comment
Recommended Posts
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.