Docker 网络代理配置

[Service]

Environment=”HTTP_PROXY=http://192.168.0.49:3128″

Environment=”HTTPS_PROXY=http://192.168.0.49:3128″

mkdir /etc/systemd/system/docker.service.d && vim /etc/systemd/system/docker.service.d/http-proxy.conf

brew update 更新失败

cd "$(brew --repo)"
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git

重新执行 brew update