基础环境
● VMware 15.5
● CentOS 7
安装
1、安装基础组件
命令:yum install -y yum-utils device-mapper-persistent-data lvm2
2、安装Docker的存储库
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
使用国内镜像,如阿里云镜像
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
3、安装CE版本的Docker
yum install -y docker-ce
启动
1、启动Docker
systemctl start docker
2、运行hello world
docker run hello-world
当本地不存在时,会自动进行下载