docker安装-简易版
简易安装
网址: https://get.docker.com/
命令:
# VERSION变量可以指定版本
curl -fsSL https://get.docker.com -o get-docker.sh
export VERSION=20.10.0
sh get-docker.sh --mirror Aliyun
systemctl start docker
systemctl enable docker
加速:
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://icaapr70.mirror.aliyuncs.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker