- 使用 Xshell 连接服务器,并获取 root 权限
wget https://get.docker.com/gpg
rpmkeys --import ./gpg
- 自动安装命令:
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
- 验证docker是否安装成功:
docker version
- 重启docker
sudo service docker restart
标签:Centos,get,gpg,https,docker,安装 From: https://www.cnblogs.com/xionghouhan/p/17167737.html