how to only proxy when docker pull image ?


paysen

Recommended Posts

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 

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.