Skip to content

Instantly share code, notes, and snippets.

@bfgits
Created November 26, 2018 05:33
Show Gist options
  • Save bfgits/e3a677a215d6895049b742c19ec7b1ea to your computer and use it in GitHub Desktop.
Save bfgits/e3a677a215d6895049b742c19ec7b1ea to your computer and use it in GitHub Desktop.
Ubuntu18.04安装docker-ce(阿里源)
apt-get update
apt-get -y install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
apt-get -y update
apt-get -y install docker-ce
@bfgits
Copy link
Author

bfgits commented Jan 22, 2021

sudo usermod -aG docker binfeng

@bfgits
Copy link
Author

bfgits commented Nov 27, 2022

docker hub 加速 by my ali account

sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://i0q0bqz7.mirror.aliyuncs.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment