Created
November 26, 2018 05:33
-
-
Save bfgits/e3a677a215d6895049b742c19ec7b1ea to your computer and use it in GitHub Desktop.
Ubuntu18.04安装docker-ce(阿里源)
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
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 |
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
sudo usermod -aG docker binfeng