Browsing this Thread:   1 Anonymous Users






docker 被墙 http_proxy docker使用http_proxy配置代理解决方法
#1
Just can't stay away
Just can't stay away


See User information
sudo mkdir -/etc/systemd/system/docker.service.d/

sudo nvim /etc/systemd/system/docker.service.d/http-proxy.conf 

 cat  
/etc/systemd/system/docker.service.d/http-proxy.conf 
[Service]
Environment="HTTP_PROXY=http://127.0.0.1:9981"
Environment="HTTPS_PROXY=http://127.0.0.1:9981"
Environment="NO_PROXY=localhost,127.0.0.1"

sudo systemctl daemon-reload
sudo systemctl restart docker

Posted on: 9/22 21:03
Top








friend links
Themes

(2 themes)
Login
Username:

Password:


Lost Password?
Register now!
Categories
Xoops (11)
--Modules (2)
--Themes (0)
Article (8)