纯笔记,哪天硬盘挂了,方便爷们重建。
配置http proxy
# 创建目录
mkdir /etc/systemd/system/docker.service.d
# 创建文件写入 /etc/systemd/system/docker.service.d/http-proxy.conf
[Service]
Environment="HTTP_PROXY=http://192.168.0.237:3129"
Environment="HTTPS_PROXY=http://192.168.0.237:3129"
# 重启服务
systemctl daemon-reload
systemctl restart