docker官网 介绍docker的文档
https://docs.docker.com/install/linux/docker-ce/centos/
centos 安装docker
卸载centos中旧版本的docker
yum remove docker
docker-client
docker-client-latest
docker-common
docker-latest
docker-latest-logrotate
docker-logrotate
docker-selinux
docker-engine-selinux
docker-engine
安装 工具
yum install -y yum-utils
device-mapper-persistent-data
lvm2
安装源
yum-config-manager
--add-repo
https://download.docker.com/linux/centos/docker-ce.repo
安装docker
yum install docker-ce
启动docker
--启动docker
systemctl start docker
--查询docker的状态
systemctl status docker
--将docker 加入到开机启动中
systemctl enable docker