## 方法一
# 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.重启服务
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 characters
@echo off | |
:: 网络清理与静态IP设置脚本 | |
:: 请以管理员身份运行 | |
echo 正在执行网络清理与旁路由配置...... | |
echo. | |
:: ================ 第一步:清理 Profiles 下的所有子项 ================ | |
echo 1/2 正在清理 Profiles 下的所有网络子项... |