当前位置: 首页 > news >正文

php网站开发公司金融投资网站模板

php网站开发公司,金融投资网站模板,网站外链建设常用字,自己做购物网站推广目录 查看主机上docker版本 配置docker的yum源 安装指定版本docker-20.10.14 查看yum中docker的版本 此命令装完后,任然会是最新版本的docker 卸载已安装docker 安装docker docker依赖包有冲突 解决冲突报错 再次执行安装docker命令 查看主机上docker版本 …

目录

查看主机上docker版本

配置docker的yum源

安装指定版本docker-20.10.14

查看yum中docker的版本

此命令装完后,任然会是最新版本的docker

卸载已安装docker

安装docker

docker依赖包有冲突

 解决冲突报错

再次执行安装docker命令 

查看主机上docker版本

没有的话,安装指定版本的docker

# docker -v
-bash: docker: command not found

配置docker的yum源

或直接从其他地方,将docker-ce.repo文件拷至本机

wget https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo -P /etc/yum.repos.d/

安装指定版本docker-20.10.14

查看yum中docker的版本

此时最新的docker版本是26.0。尝鲜的留给勇者,我就用着稳定没问题的版本好了。

]# yum list docker-ce --showduplicates | sort -r
Repository epel is listed more than once in the configuration
Repository epel-debuginfo is listed more than once in the configuration
Repository epel-source is listed more than once in the configuration* updates: mirrors.aliyun.com
Loading mirror speeds from cached hostfile
Loaded plugins: fastestmirror* extras: mirrors.aliyun.com
docker-ce.x86_64            3:26.0.0-1.el7                      docker-ce-stable
docker-ce.x86_64            3:25.0.5-1.el7                      docker-ce-stable
docker-ce.x86_64            3:25.0.4-1.el7                      docker-ce-stable
docker-ce.x86_64            3:25.0.3-1.el7                      docker-ce-stable
docker-ce.x86_64            3:25.0.2-1.el7                      docker-ce-stable
docker-ce.x86_64            3:25.0.1-1.el7                      docker-ce-stable
docker-ce.x86_64            3:25.0.0-1.el7                      docker-ce-stable
docker-ce.x86_64            3:24.0.9-1.el7                      docker-ce-stable
docker-ce.x86_64            3:24.0.8-1.el7                      docker-ce-stable
docker-ce.x86_64            3:24.0.7-1.el7                      docker-ce-stable
docker-ce.x86_64            3:24.0.6-1.el7                      docker-ce-stable
docker-ce.x86_64            3:24.0.5-1.el7                      docker-ce-stable
docker-ce.x86_64            3:24.0.4-1.el7                      docker-ce-stable
docker-ce.x86_64            3:24.0.3-1.el7                      docker-ce-stable
docker-ce.x86_64            3:24.0.2-1.el7                      docker-ce-stable
docker-ce.x86_64            3:24.0.1-1.el7                      docker-ce-stable
docker-ce.x86_64            3:24.0.0-1.el7                      docker-ce-stable
docker-ce.x86_64            3:23.0.6-1.el7                      docker-ce-stable
docker-ce.x86_64            3:23.0.5-1.el7                      docker-ce-stable
docker-ce.x86_64            3:23.0.4-1.el7                      docker-ce-stable
docker-ce.x86_64            3:23.0.3-1.el7                      docker-ce-stable
docker-ce.x86_64            3:23.0.2-1.el7                      docker-ce-stable
docker-ce.x86_64            3:23.0.1-1.el7                      docker-ce-stable
docker-ce.x86_64            3:23.0.0-1.el7                      docker-ce-stable
docker-ce.x86_64            3:20.10.9-3.el7                     docker-ce-stable
docker-ce.x86_64            3:20.10.8-3.el7                     docker-ce-stable
docker-ce.x86_64            3:20.10.7-3.el7                     docker-ce-stable
docker-ce.x86_64            3:20.10.6-3.el7                     docker-ce-stable
docker-ce.x86_64            3:20.10.5-3.el7                     docker-ce-stable
docker-ce.x86_64            3:20.10.4-3.el7                     docker-ce-stable
docker-ce.x86_64            3:20.10.3-3.el7                     docker-ce-stable
docker-ce.x86_64            3:20.10.24-3.el7                    docker-ce-stable
docker-ce.x86_64            3:20.10.2-3.el7                     docker-ce-stable
docker-ce.x86_64            3:20.10.23-3.el7                    docker-ce-stable
docker-ce.x86_64            3:20.10.22-3.el7                    docker-ce-stable
docker-ce.x86_64            3:20.10.21-3.el7                    docker-ce-stable
docker-ce.x86_64            3:20.10.20-3.el7                    docker-ce-stable
docker-ce.x86_64            3:20.10.19-3.el7                    docker-ce-stable
docker-ce.x86_64            3:20.10.18-3.el7                    docker-ce-stable
docker-ce.x86_64            3:20.10.17-3.el7                    docker-ce-stable
docker-ce.x86_64            3:20.10.16-3.el7                    docker-ce-stable
docker-ce.x86_64            3:20.10.15-3.el7                    docker-ce-stable
docker-ce.x86_64            3:20.10.14-3.el7                    docker-ce-stable
docker-ce.x86_64            3:20.10.1-3.el7                     docker-ce-stable
docker-ce.x86_64            3:20.10.13-3.el7                    docker-ce-stable
docker-ce.x86_64            3:20.10.12-3.el7                    docker-ce-stable
docker-ce.x86_64            3:20.10.11-3.el7                    docker-ce-stable
docker-ce.x86_64            3:20.10.10-3.el7                    docker-ce-stable
docker-ce.x86_64            3:20.10.0-3.el7                     docker-ce-stable
docker-ce.x86_64            3:19.03.9-3.el7                     docker-ce-stable
docker-ce.x86_64            3:19.03.8-3.el7                     docker-ce-stable
docker-ce.x86_64            3:19.03.7-3.el7                     docker-ce-stable
docker-ce.x86_64            3:19.03.6-3.el7                     docker-ce-stable
docker-ce.x86_64            3:19.03.5-3.el7                     docker-ce-stable

想要安装哪个docker的版本

此命令装完后,任然会是最新版本的docker


# yum install docker-ce-20.10.14 -y
Total                                                                              514 kB/s |  81 MB  00:02:40     
Running transaction check
Running transaction test
Transaction test succeeded
Running transactionInstalling : containerd.io-1.6.28-3.2.el7.x86_64                                                             1/4 Installing : 1:docker-ce-cli-26.0.0-1.el7.x86_64                                                             2/4 Installing : docker-ce-rootless-extras-26.0.0-1.el7.x86_64                                                   3/4 Installing : 3:docker-ce-20.10.14-3.el7.x86_64 [#####                                                      ] 4/4Installing : 3:docker-ce-20.10.14-3.el7.x86_64                                                               4/4 Verifying  : 3:docker-ce-20.10.14-3.el7.x86_64                                                               1/4 Verifying  : 1:docker-ce-cli-26.0.0-1.el7.x86_64                                                             2/4 Verifying  : docker-ce-rootless-extras-26.0.0-1.el7.x86_64                                                   3/4 Verifying  : containerd.io-1.6.28-3.2.el7.x86_64                                                             4/4 Installed:docker-ce.x86_64 3:20.10.14-3.el7                                                                                Dependency Installed:containerd.io.x86_64 0:1.6.28-3.2.el7                          docker-ce-cli.x86_64 1:26.0.0-1.el7               docker-ce-rootless-extras.x86_64 0:26.0.0-1.el7               Complete!# docker -v
Docker version 26.0.0, build 2ae903e

卸载已安装docker

# yum remove docker-ce docker-ce-cli containerd.io -y
Loaded plugins: fastestmirror
Repository epel is listed more than once in the configuration
Repository epel-debuginfo is listed more than once in the configuration
Repository epel-source is listed more than once in the configuration
Resolving Dependencies
--> Running transaction check
---> Package containerd.io.x86_64 0:1.6.28-3.2.el7 will be erased
---> Package docker-ce.x86_64 3:20.10.14-3.el7 will be erased
--> Processing Dependency: docker-ce for package: docker-ce-rootless-extras-26.0.0-1.el7.x86_64
---> Package docker-ce-cli.x86_64 1:26.0.0-1.el7 will be erased
--> Running transaction check
---> Package docker-ce-rootless-extras.x86_64 0:26.0.0-1.el7 will be erased
--> Finished Dependency ResolutionDependencies Resolved===================================================================================================================Package                             Arch             Version                    Repository                   Size
===================================================================================================================
Removing:containerd.io                       x86_64           1.6.28-3.2.el7             @docker-ce-stable           116 Mdocker-ce                           x86_64           3:20.10.14-3.el7           @docker-ce-stable            94 Mdocker-ce-cli                       x86_64           1:26.0.0-1.el7             @docker-ce-stable            36 M
Removing for dependencies:docker-ce-rootless-extras           x86_64           26.0.0-1.el7               @docker-ce-stable            20 MTransaction Summary
===================================================================================================================
Remove  3 Packages (+1 Dependent package)Installed size: 265 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transactionErasing    : docker-ce-rootless-extras-26.0.0-1.el7.x86_64                                                   1/4 Erasing    : 3:docker-ce-20.10.14-3.el7.x86_64                                                               2/4 Erasing    : containerd.io-1.6.28-3.2.el7.x86_64                                                             3/4 Erasing    : 1:docker-ce-cli-26.0.0-1.el7.x86_64                                                             4/4 Verifying  : 3:docker-ce-20.10.14-3.el7.x86_64                                                               1/4 Verifying  : 1:docker-ce-cli-26.0.0-1.el7.x86_64                                                             2/4 Verifying  : docker-ce-rootless-extras-26.0.0-1.el7.x86_64                                                   3/4 Verifying  : containerd.io-1.6.28-3.2.el7.x86_64                                                             4/4 Removed:containerd.io.x86_64 0:1.6.28-3.2.el7   docker-ce.x86_64 3:20.10.14-3.el7   docker-ce-cli.x86_64 1:26.0.0-1.el7  Dependency Removed:docker-ce-rootless-extras.x86_64 0:26.0.0-1.el7                                                                  Complete!# rm -rf /var/lib/docker 
# rm -rf /var/lib/containerd/

安装docker

 

# yum install -y docker-ce-20.10.14 docker-ce-cli-20.10.14 containerd.io-20.10.14
Loaded plugins: fastestmirror
Repository epel is listed more than once in the configuration
Repository epel-debuginfo is listed more than once in the configuration
Repository epel-source is listed more than once in the configuration
Loading mirror speeds from cached hostfile* base: mirrors.aliyun.com* extras: mirrors.aliyun.com* updates: mirrors.aliyun.com
No package containerd.io-20.10.14 available.
Resolving Dependencies
--> Running transaction check
---> Package docker-ce.x86_64 3:20.10.14-3.el7 will be installed
--> Processing Dependency: containerd.io >= 1.4.1 for package: 3:docker-ce-20.10.14-3.el7.x86_64
--> Processing Dependency: docker-ce-rootless-extras for package: 3:docker-ce-20.10.14-3.el7.x86_64
---> Package docker-ce-cli.x86_64 1:20.10.14-3.el7 will be installed
--> Running transaction check
---> Package containerd.io.x86_64 0:1.6.28-3.2.el7 will be installed
---> Package docker-ce-rootless-extras.x86_64 0:26.0.0-1.el7 will be installed
--> Finished Dependency ResolutionDependencies Resolved===================================================================================================================Package                             Arch             Version                     Repository                  Size
===================================================================================================================
Installing:docker-ce                           x86_64           3:20.10.14-3.el7            docker-ce-stable            22 Mdocker-ce-cli                       x86_64           1:20.10.14-3.el7            docker-ce-stable            30 M
Installing for dependencies:containerd.io                       x86_64           1.6.28-3.2.el7              docker-ce-stable            35 Mdocker-ce-rootless-extras           x86_64           26.0.0-1.el7                docker-ce-stable           9.4 MTransaction Summary
===================================================================================================================
Install  2 Packages (+2 Dependent packages)Total download size: 97 M
Installed size: 375 M
Downloading packages:
(1/4): docker-ce-20.10.14-3.el7.x86_64.rpm                                                  |  22 MB  00:00:57     
(3/4): docker-ce-cli-20.10.14-3.el7.x86_64 48% [================                 ] 807 kB/s |  47 MB  00:01:03 ETA 
(2/4): containerd.io-1.6.28-3.2.el7.x86_64.rpm                                              |  35 MB  00:01:22     
(3/4): docker-ce-rootless-extras-26.0.0-1.el7.x86_64.rpm                                    | 9.4 MB  00:00:22     
(4/4): docker-ce-cli-20.10.14-3.el7.x86_64 92% [==============================   ] 426 kB/s |  90 MB  00:00:17 ETA 
(4/4): docker-ce-cli-20.10.14-3.el7.x86_64.rpm                                              |  30 MB  00:01:18     
-------------------------------------------------------------------------------------------------------------------
Total                                                                              728 kB/s |  97 MB  00:02:16     
Running transaction check
Running transaction testTransaction check error:file /usr/libexec/docker/cli-plugins/docker-buildx from install of docker-ce-cli-1:20.10.14-3.el7.x86_64 conflicts with file from package docker-buildx-plugin-0:0.13.1-1.el7.x86_64Error Summary
-------------

docker依赖包有冲突

Transaction check error:
  file /usr/libexec/docker/cli-plugins/docker-buildx from install of docker-ce-cli-1:20.10.14-3.el7.x86_64 conflicts with file from package docker-buildx-plugin-0:0.13.1-1.el7.x86_64 

 解决冲突报错

# yum remove docker-buildx-plugin.x86_64*
Loaded plugins: fastestmirror
Repository epel is listed more than once in the configuration
Repository epel-debuginfo is listed more than once in the configuration
Repository epel-source is listed more than once in the configuration
Resolving Dependencies
--> Running transaction check
---> Package docker-buildx-plugin.x86_64 0:0.13.1-1.el7 will be erased
--> Finished Dependency ResolutionDependencies Resolved===================================================================================================================Package                          Arch               Version                   Repository                     Size
===================================================================================================================
Removing:docker-buildx-plugin             x86_64             0.13.1-1.el7              @docker-ce-stable              61 MTransaction Summary
===================================================================================================================
Remove  1 PackageInstalled size: 61 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transactionErasing    : docker-buildx-plugin-0.13.1-1.el7.x86_64                                                        1/1 Verifying  : docker-buildx-plugin-0.13.1-1.el7.x86_64                                                        1/1 Removed:docker-buildx-plugin.x86_64 0:0.13.1-1.el7                                                                       Complete!

再次执行安装docker命令 

# yum install -y docker-ce-20.10.14 docker-ce-cli-20.10.14 containerd.io-20.10.14
Loaded plugins: fastestmirror
Repository epel is listed more than once in the configuration
Repository epel-debuginfo is listed more than once in the configuration
Repository epel-source is listed more than once in the configuration
Loading mirror speeds from cached hostfile* base: mirrors.aliyun.com* extras: mirrors.aliyun.com* updates: mirrors.aliyun.com
No package containerd.io-20.10.14 available.
Resolving Dependencies
--> Running transaction check
---> Package docker-ce.x86_64 3:20.10.14-3.el7 will be installed
--> Processing Dependency: containerd.io >= 1.4.1 for package: 3:docker-ce-20.10.14-3.el7.x86_64
--> Processing Dependency: docker-ce-rootless-extras for package: 3:docker-ce-20.10.14-3.el7.x86_64
---> Package docker-ce-cli.x86_64 1:20.10.14-3.el7 will be installed
--> Running transaction check
---> Package containerd.io.x86_64 0:1.6.28-3.2.el7 will be installed
---> Package docker-ce-rootless-extras.x86_64 0:26.0.0-1.el7 will be installed
--> Finished Dependency ResolutionDependencies Resolved===================================================================================================================Package                             Arch             Version                     Repository                  Size
===================================================================================================================
Installing:docker-ce                           x86_64           3:20.10.14-3.el7            docker-ce-stable            22 Mdocker-ce-cli                       x86_64           1:20.10.14-3.el7            docker-ce-stable            30 M
Installing for dependencies:containerd.io                       x86_64           1.6.28-3.2.el7              docker-ce-stable            35 Mdocker-ce-rootless-extras           x86_64           26.0.0-1.el7                docker-ce-stable           9.4 MTransaction Summary
===================================================================================================================
Install  2 Packages (+2 Dependent packages)Total size: 97 M
Installed size: 375 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transactionInstalling : containerd.io-1.6.28-3.2.el7.x86_64                                                             1/4 Installing : 1:docker-ce-cli-20.10.14-3.el7.x86_64                                                           2/4 Installing : docker-ce-rootless-extras-26.0.0-1.el7.x86_64                                                   3/4 Installing : 3:docker-ce-20.10.14-3.el7.x86_64                                                               4/4 Verifying  : 3:docker-ce-20.10.14-3.el7.x86_64                                                               1/4 Verifying  : 1:docker-ce-cli-20.10.14-3.el7.x86_64                                                           2/4 Verifying  : docker-ce-rootless-extras-26.0.0-1.el7.x86_64                                                   3/4 Verifying  : containerd.io-1.6.28-3.2.el7.x86_64                                                             4/4 Installed:docker-ce.x86_64 3:20.10.14-3.el7                      docker-ce-cli.x86_64 1:20.10.14-3.el7                     Dependency Installed:containerd.io.x86_64 0:1.6.28-3.2.el7               docker-ce-rootless-extras.x86_64 0:26.0.0-1.el7              Complete!
[root@host-10-19-83-151 data]# docker  -v
Docker version 20.10.14, build a224086
[root@host-10-19-83-151 data]# 

完成指定版本docker安装

# docker  -v
Docker version 20.10.14, build a224086

http://www.yayakq.cn/news/847072/

相关文章:

  • 甘肃省建设局网站做图表的网站推荐
  • 黄石手机网站建设南浔建设局网站
  • 科技团队网站海南省住房和城乡建设厅网站电脑版
  • 做网站骗如何快速提升网站关键词排名
  • 郑州网站建设七彩科技互联网培训机构排名前十
  • 常州网站制作计划恶意点击广告软件
  • 如何把自己做的网站放到网上影城网站设计
  • 六安市网站建设个人网站建设规划表
  • 建站之星官网 discuz办公室装修计入什么费用
  • 河南城乡建设部网站首页wordpress.播放器代码
  • 没有网站做优化网页制作基础教程字体居中颜色
  • 如何免费申请网站域名房地产建设企业网站
  • 离石网站建设公司收到网站打入0.1元怎么做分录
  • 原子艺术做的网站怎么样子seo大连培训
  • 网站建设-设计网络推广活动方案主题和思路
  • 网站开发公司哪里寻找客源自己开发一个app
  • 制作宝安网站建设最好的免费cms系统
  • 网站流量统计厦门网站优化公司
  • 国美网站建设特点小程序代码生成
  • 商城类网站风格动漫制作软件
  • 重庆营销网站建设公司排名西安企业名录电话资料
  • 做app网站的软件双线网站
  • 公司经营范围网站开发及运营重庆博达建设集团网站
  • 石家庄网站建设刘华wordpress 自由评论
  • 天眼查官方网站成都建网站的公司
  • 个人使用网站输入法网站设计
  • 学校网站的建立北京市保障性住房建设投资中心官方网站
  • 怎么用phpcmf做网站简述网站建设及维护全过程
  • 广西电力工程建设有限公司网站几百块做网站
  • 成都网站快速优化排名百度怎么注册自己的店铺