yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-engine yum install -y yum-utils yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo yum install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin # set data-root # /etc/docker/daemon.json { "data-root":"/home/docker" } systemctl start docker
参考:https://docs.docker.com/engine/install/centos/
标签:compose,centos,ce,yum,install,docker From: https://www.cnblogs.com/Primzahl/p/17534346.html