sudo yum -y install vim sudo setenforce Permissive sudo vim /etc/selinux/config SELINUX=permissive sudo systemctl stop firewalld.service sudo systemctl disable firewalld.service sudo yum remove -y docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-engine sudo yum install -y yum-utils sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo sudo yum install -y docker-ce docker-ce-cli containerd.io sudo mkdir -p /data/var/lib/docker/ sudo chmod g-r,o-r /data/var/lib/docker/ sudo mkdir /etc/docker/ sudo touch /etc/docker/daemon.json sudo vim /etc/docker/daemon.json { "data-root": "/data/var/lib/docker" } sudo systemctl enable docker.service sudo systemctl start docker.service sudo docker run hello-world