centos 在线安装docker
关闭selinux防火墙
vi /etc/selinux/config
修改SELINUX=disabled 保存退出
关闭firewalld防火墙
关闭: systemctl stop firewalld
开机禁用 : systemctl disable firewalld
安装docker
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install docker-ce -y
sudo systemctl enable docker
sudo systemctl start docker
使用docker ps 确认docker安装成功