使用yum卸载Docker库
yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-engine
yum update
安装yum工具包和存储驱动
yum install -y yum-utils device-mapper-persistent-data lvm2
安装Docker的yum源
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
安装Docker-19.03.5
yum install docker-ce docker-ce-cli containerd.io
设置开机自启
systemctl enable docker
启动docker
sudo service docker start
将指定用户添加到用户组
usermod -aG docker root
退出,然后重新登录,以便让权限生效
标签:ce,logrotate,yum,docker,Docker,latest From: https://www.cnblogs.com/q1231/p/16867477.html