设置代理
export ALL_PROXY=socks5://127.0.0.1:1086
关闭自动更新
vim ~/.bash_profile
# 新增一行
export HOMEBREW_NO_AUTO_UPDATE=true
无权限提示及解决方法
brew install docker
Error: The following directories are not writable by your user:
/usr/local/sbin
You should change the ownership of these directories to your user.
sudo chown -R $(whoami) /usr/local/sbin
And make sure that your user has write permission.
chmod u+w /usr/local/sbin
参考资料: