linux docker安装

1、安装命令包:yum install -y yum-utils device-mapper-persistent-data lvm2

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

3、yum install docker-ce

启动docker:systemctl start docker

测试命令:docker run hello-world

查看版本:docker -version

甘于平凡,做一个甘于平凡的人,菜米油盐,生老病死。
原文地址:https://www.cnblogs.com/rolayblog/p/11003589.html