首页 > 其他分享 >docker版本的升级

docker版本的升级

时间:2023-07-01 11:11:36浏览次数:32  
标签:x86 24.0 ce 升级 64 版本 docker el7

CentOS7版本下

升级包

yum -y update

卸载原有包

yum remove docker-selinux -y

这里为什么只卸载docker-selinux呢?

因为卸载docker-selinux的时候会自动把docker相关的依赖都卸载掉

依赖关系解决

==========================================================================================================================================================================
 Package                                        架构                        版本                                             源                                      大小
==========================================================================================================================================================================
正在删除:
 container-selinux                              noarch                      2:2.119.2-1.911c772.el7_8                        @extras                                 41 k
为依赖而移除:
 containerd.io                                  x86_64                      1.6.21-3.1.el7                                   @docker-ce-stable                      114 M
 docker-ce                                      x86_64                      3:24.0.2-1.el7                                   @docker-ce-stable                       98 M
 docker-ce-rootless-extras                      x86_64                      24.0.2-1.el7                                     @docker-ce-stable                       19 M

事务概要
==========================================================================================================================================================================
移除  1 软件包 (+3 依赖软件包)

安装大小:231 M
是否继续?[y/N]:y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在删除    : docker-ce-rootless-extras-24.0.2-1.el7.x86_64                                                                                                         1/4 
  正在删除    : 3:docker-ce-24.0.2-1.el7.x86_64                                                                                                                       2/4 
  正在删除    : containerd.io-1.6.21-3.1.el7.x86_64                                                                                                                   3/4 
  正在删除    : 2:container-selinux-2.119.2-1.911c772.el7_8.noarch                                                                                                    4/4 
  验证中      : 3:docker-ce-24.0.2-1.el7.x86_64                                                                                                                       1/4 
  验证中      : containerd.io-1.6.21-3.1.el7.x86_64                                                                                                                   2/4 
  验证中      : docker-ce-rootless-extras-24.0.2-1.el7.x86_64                                                                                                         3/4 
  验证中      : 2:container-selinux-2.119.2-1.911c772.el7_8.noarch                                                                                                    4/4 

删除:
  container-selinux.noarch 2:2.119.2-1.911c772.el7_8                                                                                                                      

作为依赖被删除:
  containerd.io.x86_64 0:1.6.21-3.1.el7                  docker-ce.x86_64 3:24.0.2-1.el7                  docker-ce-rootless-extras.x86_64 0:24.0.2-1.el7                 

完毕!

重新安装docker-ce

如果之前没有安装docker安装源的话,还需要安装一下

yum-config-manager --add-repo https://mirrors.ustc.edu.cn/docker-ce/linux/centos/docker-ce.repo
yum makecache fast

安装

#安装docker
yum install docker-ce -y
#设置开机自启
systemctl enable docker
#启动docker
systemctl start docker

如果之前没设置相关配置

#配置加速
cat <<EOF > /etc/docker/daemon.json
{
  "registry-mirrors": [
    "https://docker.mirrors.ustc.edu.cn",
   "https://hub-mirror.c.163.com",
   "https://reg-mirror.qiniu.com",
    "https://registry.docker-cn.com"
  ],
  "exec-opts": ["native.cgroupdriver=systemd"],
  "data-root": "/data/docker",
  "log-driver": "json-file",
  "log-opts": {
	 "max-size": "200m",
	 "max-file": "5"
	}
}
EOF
#重启docker
systemctl restart docker

值得注意的是: docker的很多加速地址都没法使用了,镜像无法正常拉取,所以上述配置只是例子,使用时一定要删掉加速地址,添加上自己的加速地址,加速地址可以在云服务商处获取,这里就不作详细阐述了

标签:x86,24.0,ce,升级,64,版本,docker,el7
From: https://www.cnblogs.com/guangdelw/p/17519003.html

相关文章

  • docker学习三 实例部署
    1、nginx的docker部署1.1、下载nginx镜像dockerpullnginx1.2、运行nginx镜像[root@iZbp10j4antmyah3ya8nioZ~]#dockerrun-d-p80:80--namemynginx01nginx1c48fb6b753f73e59740c4dbd86006e68f09d8c83ba2fe8c666cb3422ec56af7[root@iZbp10j4antmyah3ya8nioZ~]#do......
  • Ubuntu LTS 版本
        在Linux的世界里,特别是谈到 Ubuntu 的时候,你会遇到LTS(长期支持LongTermSupport)这个词。如果你是一个经验丰富的Linux用户,你可能知道Linux发行版的各个方面,比如LTS版本。但是,新用户或不太懂技术的用户可能不知道。在这一章Linux黑话解释中,你将了解什......
  • gitlab-runner因与gitlab版本不匹配,降低gitlab-runner版本,操作流程
     1.查看版本号:sudogitlab-runner--verison2.降低gitlab-runner版本。卸载gitlab-runner版本,然后安装低版本的gitlab-runner查看gitlab-runner版本操作命令gitlab-runner命令gitlab-runner-h 卸载的命令gitlab-runner uninstall  查看卸载的情况,发现不好......
  • Qt 设置软件的版本信息
    相关资料:https://blog.csdn.net/u012878602/article/details/119682389 Qt设置软件的版本等信息对于Qt开发的软件,我们如何去方便的查看其软件的版本信息。这里提供了几种方式。在运行程序期间设置版本信息大部分的程序在运行之后都会提供一个关于的按钮,通过点击该按钮并弹出一......
  • docker安装记录-centos
    1.下载依赖以及脚本[email protected]:a356a/deploy.git2.执行脚本-dockerInstall.sh脚本具体执行:卸载原有dockeryum-yremove$(yumlistinstalled|grepdocker|awk'{print$1}')安装需要的依赖yuminstall-yyum-utilsdevice-mapper-persistent-datalvm2添加镜像......
  • 未来的LibreOffice版本将允许导入和导出APNG图像
    导读文档基金会已经完成了其LibreOffice开源办公套件在2023年谷歌夏季代码(GSoC)中的项目选择,承诺将提供用户要求已久的新功能和改进。未来的LibreOffice版本将允许你导入和导出APNG(AnimatedPNG)图像,这是一种向后兼容PNG图像格式的动画格式,支持比GIF图像更多的颜色和部分透......
  • Docker容器镜像加速
    环境:CentOS7设置docker环境[root@Master~]#mkdir-p/etc/docker[root@Master~]#cd/etc/docker[root@Masterdocker]#vidaemon.json{"registry-mirrors":["https://docker.mirrors.ustc.edu.cn"]}重启服务[root@Masterdocker]#systemctldaemon-rel......
  • 安装Docker容器(Linux系统)
    环境:CentOS7更新yum包[root@Master~]#yumupdateLoadedplugins:fastestmirrorDeterminingfastestmirrors*base:mirrors.aliyun.com*extras:mirrors.aliyun.com*updates:mirrors.aliyun.combase......
  • docker使用笔记
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@docker批量启动与停止容器::dockerstart$(dockerps-a-q)试试看 dockerstop$(dockerps-a-q)试试看 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@centos7安装shipyard没有本地容器及镜像:方法:.设置防火墙[root@c2~]#firewall-cmd--z......
  • 怎样导入pytorch gpu版本?
    1.下载anaconda2.在anaconda里创建环境create-npytorch_gpu#激活环境condaactivatepytorch_gpu3.在环境里install修改镜像接下来就是关键一步了,把-cpytorch表示的pytorch源,更改为国内的镜像。https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/先浏......