Docker简单安装

环境:

Centos7

内核版本:检查内核版本,返回的值大于3.10即可

使用 sudo 或 root 权限的用户登入终端。

安装依赖:

sudo yum install -y yum-utils device-mapper-persistent-data lvm2 

 

 

设置阿里云镜像源

yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo 

安装Docker-CE

yum install docker-ce

启动Docker-CE

systemctl enable docker    #设置开机启动

systemctl start docker    #启动

验证安装:

docker version

猜你喜欢

转载自blog.csdn.net/m0_37664730/article/details/88177289