安装docker-ce #安装docker yuminstall-yyum-utilsdevice-mapper-persistent-datalvm2 yum-config-manager\ --add-repo\ https://download.docker.com/linux/centos/docker-ce.repo yummakecachefast yuminstall-ydocker-ce #编辑systemctl的Docker启动文件 sed-i"13iExecStartPost=/usr/sbin/iptables-PFOR