1、安装需要的软件包 # yum install -y yum-utils device-mapper-persistent-data lvm2 2、安装docker # yum install docker-ce 3、安装成功后,启动docker,设置docker开机启动 # systemctl