hostname
hostnamectl set-hostname
systemctl stop firewalld && systemctl disable firewalld && iptables -F && setenforce 0
sysctl -w vm.swappiness=0
echo "vm.swappiness = 0">> /etc/sysctl.conf
swapoff -a
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
sudo yum makecache fast
sudo yum -y install docker-ce
sudo service docker start && systemctl enable docker.service && systemctl status docker
阿里云镜像加速
sudo systemctl daemon-reload
sudo systemctl restart docker