Centos上安装Docker如下:

sudo su
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install -y docker-ce 
systemctl start docker
systemctl enable docker

安装完毕以后, 查看Docker版本:

sh docker version

标签: none

添加新评论