docker 报错,使用这个脚本安装
作者:互联网
#!/bin/bash rm -rf /var/lib/docker yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-engine -y 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 systemctl restart docker systemctl enable docker #指定安装docker版本 #yum list docker-ce --showduplicates | sort -r # yum install docker-ce-<VERSION_STRING> docker-ce-cli-<VERSION_STRING> containerd.io
标签:脚本,ce,logrotate,yum,install,报错,docker,latest 来源: https://www.cnblogs.com/vmsysjack/p/14907283.html