一、卸载
yum remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-engine
二、下载离线安装包
https://download.docker.com/linux/static/stable/x86_64/
解压文件并且复制
tar -xvf docker-xxxx-ce.tgz /
cp docker/* /usr/bin/
将docker注册为服务
vim /etc/systemd/system/docker.service
启动docker
chmod +x /etc/systemd/system/docker.service #添加文件权限并启动docker
systemctl daemon-reload #重新加载配置文件
systemctl start docker #启动Docker
systemctl enable docker.service #设置开机自启yum
docker 导出镜像
docker save -o /home/rabbitmq-management-3.8.9.tar rabbitmq:management
网友评论