Last active
August 17, 2025 04:51
-
-
Save wbmins/2923f9529f7e620de732f73bc646e5c7 to your computer and use it in GitHub Desktop.
Revisions
-
wbmins revised this gist
Aug 17, 2025 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,12 +12,14 @@ sudo systemctl daemon-reload sudo systemctl restart docker ## 方法一 # 编辑 /etc/docker/daemon.json 增加如下内容 { "proxies": { "http-proxy": "http://192.168.1.5:7890", "no-proxy": "localhost,127.0.0.0/8", "https-proxy": "http://192.168.1.5:7890" } } # 重启服务 sudo systemctl restart docker ``` -
wbmins revised this gist
Aug 17, 2025 . 1 changed file with 11 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,5 @@ ```shell ## 方法一 # 1.创建文件 sudo mkdir -p /etc/systemd/system/docker.service.d sudo vim /etc/systemd/system/docker.service.d/http-proxy.conf @@ -9,4 +10,14 @@ Environment="HTTPS_PROXY=http://127.0.0.1:8123" # 3.重启服务 sudo systemctl daemon-reload sudo systemctl restart docker ## 方法一 编辑 /etc/docker/daemon.json 增加如下内容 { "proxies": { "http-proxy": "http://192.168.1.5:7890", "no-proxy": "localhost,127.0.0.0/8", "https-proxy": "http://192.168.1.5:7890" } } ``` -
wbmins renamed this gist
May 3, 2025 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
wbmins created this gist
May 3, 2025 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ ```shell # 1.创建文件 sudo mkdir -p /etc/systemd/system/docker.service.d sudo vim /etc/systemd/system/docker.service.d/http-proxy.conf # 2.文件内容如下 [Service] Environment="HTTP_PROXY=http://127.0.0.1:8123" Environment="HTTPS_PROXY=http://127.0.0.1:8123" # 3.重启服务 sudo systemctl daemon-reload sudo systemctl restart docker ```