前提:你的服务器已经安装了 docker 如果没有请自行安装: sudo yum install -y yum-utils sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-