由于Harbor有1.8后和前的配置不一样,决定先安装1.8,结果报错如下

[root@localhost harbor]# ./install.sh 

[Step 0]: checking installation environment ...
✖ Need to upgrade docker package to 17.06.0+.

对docker的版本要求较高,决定先卸载之前的docker

[root@topcheer harbor]# docker --version
Docker version 1.13.1, build 7f2769b/1.13.1 [root@topcheer harbor]# ./install.sh [Step 0]: checking installation environment ...
✖ Need to upgrade docker package to 17.06.0+.

开始卸载

[root@topcheer harbor]# yum remove docker                   docker-client                   docker-client-latest                   docker-common                   docker-latest                   docker-latest-logrotate                   docker-logrotate                   docker-selinux                   docker-engine-selinux                   docker-engine
已加载插件:fastestmirror, langpacks
参数 docker-client-latest 没有匹配
参数 docker-latest 没有匹配
参数 docker-latest-logrotate 没有匹配
参数 docker-logrotate 没有匹配
参数 docker-engine 没有匹配
正在解决依赖关系
--> 正在检查事务
---> 软件包 container-selinux.noarch.2.2.107-3.el7 将被 删除
---> 软件包 docker.x86_64.2.1.13.1-103.git7f2769b.el7.centos 将被 删除
---> 软件包 docker-client.x86_64.2.1.13.1-103.git7f2769b.el7.centos 将被 删除
---> 软件包 docker-common.x86_64.2.1.13.1-103.git7f2769b.el7.centos 将被 删除
--> 解决依赖关系完成 依赖关系解决 =====================================================================================================================================================
Package 架构 版本 源 大小
=====================================================================================================================================================
正在删除:
container-selinux noarch 2:2.107-3.el7 @extras 40 k
docker x86_64 2:1.13.1-103.git7f2769b.el7.centos @extras 65 M
docker-client x86_64 2:1.13.1-103.git7f2769b.el7.centos @extras 13 M
docker-common x86_64 2:1.13.1-103.git7f2769b.el7.centos @extras 4.4 k 事务概要
=====================================================================================================================================================
移除 4 软件包 安装大小:77 M
是否继续?[y/N]:y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在删除 : 2:docker-1.13.1-103.git7f2769b.el7.centos.x86_64 1/4
警告:/etc/sysconfig/docker-storage 已另存为 /etc/sysconfig/docker-storage.rpmsave
正在删除 : 2:docker-client-1.13.1-103.git7f2769b.el7.centos.x86_64 2/4
正在删除 : 2:docker-common-1.13.1-103.git7f2769b.el7.centos.x86_64 3/4
正在删除 : 2:container-selinux-2.107-3.el7.noarch 4/4
验证中 : 2:docker-common-1.13.1-103.git7f2769b.el7.centos.x86_64 1/4
验证中 : 2:docker-1.13.1-103.git7f2769b.el7.centos.x86_64 2/4
验证中 : 2:container-selinux-2.107-3.el7.noarch 3/4
验证中 : 2:docker-client-1.13.1-103.git7f2769b.el7.centos.x86_64 4/4 删除:
container-selinux.noarch 2:2.107-3.el7 docker.x86_64 2:1.13.1-103.git7f2769b.el7.centos
docker-client.x86_64 2:1.13.1-103.git7f2769b.el7.centos docker-common.x86_64 2:1.13.1-103.git7f2769b.el7.centos 完毕!

安装新的docker,首先要先update一下,不然后面会报错

[root@topcheer harbor]# systemctl restart docker.service
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
[root@topcheer harbor]# sudo yum update

最后在开始正式安装

[root@topcheer harbor]# yum install -y yum-utils
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.tuna.tsinghua.edu.cn
* extras: mirrors.tuna.tsinghua.edu.cn
* updates: mirrors.tuna.tsinghua.edu.cn
正在解决依赖关系
--> 正在检查事务
---> 软件包 yum-utils.noarch.0.1.1.31-50.el7 将被 升级
---> 软件包 yum-utils.noarch.0.1.1.31-52.el7 将被 更新
--> 解决依赖关系完成 依赖关系解决 [root@topcheer harbor]# yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
已加载插件:fastestmirror, langpacks
adding repo from: https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
grabbing file https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo
repo saved to /etc/yum.repos.d/docker-ce.repo
[root@topcheer harbor]# yum list docker-ce --showduplicates|sort -r
已加载插件:fastestmirror, langpacks
可安装的软件包
* updates: mirrors.tuna.tsinghua.edu.cn
Loading mirror speeds from cached hostfile
* extras: mirrors.tuna.tsinghua.edu.cn
docker-ce.x86_64 3:19.03.4-3.el7 docker-ce-stable
docker-ce.x86_64 3:19.03.3-3.el7 docker-ce-stable
docker-ce.x86_64 3:19.03.2-3.el7 docker-ce-stable
..... [root@topcheer harbor]# yum install docker-ce-17.06.2.ce-1.el7.centos
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.tuna.tsinghua.edu.cn
* extras: mirrors.tuna.tsinghua.edu.cn
* updates: mirrors.tuna.tsinghua.edu.cn
正在解决依赖关系
--> 正在检查事务
---> 软件包 docker-ce.x86_64.0.17.06.2.ce-1.el7.centos 将被 安装
--> 正在处理依赖关系 container-selinux >= 2.9,它被软件包 docker-ce-17.06.2.ce-1.el7.centos.x86_64 需要
--> 正在检查事务
---> 软件包 container-selinux.noarch.2.2.107-3.el7 将被 安装
--> 解决依赖关系完成

最新文章

  1. 8.仿阿里云虚拟云服务器的FTP(包括FTP文件夹大小限制)
  2. 【转载】Linux常用命令列表
  3. src 小心得
  4. 多线程JAVA篇(一)
  5. css里设置一个div在顶部固定,不随滚动条滚动而滚动
  6. Winista.Text.HtmlParser; 获取html
  7. delphi 中 $是什么意思 串口中使用
  8. Java基础知识强化72:正则表达式之判断功能(手机号码判断 和 校验邮箱)
  9. php curl 中的gzip压缩性能测试
  10. 腾讯QQ会员技术团队:人人都可以做深度学习应用:入门篇(下)
  11. django搭建web (二) urls.py
  12. 使用redis可能出现的问题
  13. 【原创】Mysql中select的正确姿势
  14. 美团开源Graver框架:用“雕刻”诠释iOS端UI界面的高效渲染
  15. phpStorm中使用xdebug断点调试php代码
  16. 音响理论基础入门:Gain(增益)
  17. hadoop fs:du & count统计hdfs文件(目录下文件)大小的用法
  18. java发送email(含代理方式,ssl方式,传统方式)
  19. constructor-arg和property的区别
  20. 详解java中CAS机制所导致的问题以及解决——内存顺序冲突

热门文章

  1. VMware 虚拟化编程(15) — VMware 虚拟机的恢复方案设计
  2. python爬虫常用数据整理函数
  3. 【SD系列】SAP 创建销售订单-用外部给号的方法步骤
  4. 解决sql语句中参数为空(null)不会更新参数的问题
  5. [9期]软WAF上传绕过+webshell免杀
  6. Java判断一个类里是否存在某个属性
  7. leveldb memtable
  8. [SP3267]DQUERY - D query
  9. adb logcat查看手机端日志
  10. SQLServer查看及设置最大连接数