docker最新版本(docker1.12.6)

docker最新版本(docker1.12.6)nbsp 这里面需要注意的是 在参考官方安装文档配置 Linux 源的时候 如果是国内服务器 要将其中的 https download docker com linux 替换为 https mirrors aliyun com docker ce linux 比如 文档如果要求执行下面的命令 那么就替换为 这样安装 Docker 就会使用阿里云的软件源

大家好,我是讯享网,很高兴认识大家。



 

这里面需要注意的是,在参考官方安装文档配置 Linux 源的时候,如果是国内服务器,要将其中的 https://download.docker.com/linux/ 替换为 https://mirrors.aliyun.com/docker-ce/linux/。

比如,文档如果要求执行下面的命令:



那么就替换为:



这样安装 Docker 就会使用阿里云的软件源,而不需要翻墙了。(注:这不是加速器,不要搞错了,加速器依旧需要配!)

 

正在解析主机 mirrors.aliyun.com (mirrors.aliyun.com)… 150.138.211.2, 150.138.211.6, 150.138.211.5, …

正在连接 mirrors.aliyun.com (mirrors.aliyun.com)|150.138.211.2|:80… 已连接。

已发出 HTTP 请求,正在等待回应… 200 OK

长度:2573 (2.5K) [application/octet-stream]

正在保存至: “/etc/yum.repos.d/CentOS-Base.repo”

 

2017-10-19 13:48:13 (144 MB/s) - 已保存 “/etc/yum.repos.d/CentOS-Base.repo” [25732573])

 

enabled=0  表示禁用本地YUM源,使用网络源。

已加载插件:fastestmirror, langpacks

警告:没有匹配 dock* 的软件包

No matches found

 

[root@CentOS1611 yum.repos.d]# yum clean all

已加载插件:fastestmirror, langpacks

正在清理软件源: base extras updates

已加载插件:fastestmirror, langpacks

正在解决依赖关系

–> 正在检查事务

—> 软件包 docker.x86_64.2.1.12.6-55.gitc4618fb.el7.centos 将被 删除

—> 软件包 docker-client.x86_64.2.1.12.6-55.gitc4618fb.el7.centos 将被 删除

—> 软件包 docker-common.x86_64.2.1.12.6-55.gitc4618fb.el7.centos 将被 删除

–> 解决依赖关系完成

 

依赖关系解决

 

=========================================================================================================================================

Package 架构 版本 源 大小

=========================================================================================================================================

正在删除:

事务概要

=========================================================================================================================================

移除 3 软件包

 

安装大小:63 M

正在删除 : 2:docker-1.12.6-55.gitc4618fb.el7.centos.x86_64 13

正在删除 : 2:docker-client-1.12.6-55.gitc4618fb.el7.centos.x86_64 23

正在删除 : 2:docker-common-1.12.6-55.gitc4618fb.el7.centos.x86_64 33

验证中 : 2:docker-client-1.12.6-55.gitc4618fb.el7.centos.x86_64 13

验证中 : 2:docker-common-1.12.6-55.gitc4618fb.el7.centos.x86_64 23

验证中 : 2:docker-1.12.6-55.gitc4618fb.el7.centos.x86_64 33

 

删除:

docker.x86_64 2:1.12.6-55.gitc4618fb.el7.centos docker-client.x86_64 2:1.12.6-55.gitc4618fb.el7.centos

docker-common.x86_64 2:1.12.6-55.gitc4618fb.el7.centos

 

完毕!

[root@CentOS1611 packages]# yum remove container-selinux-1.12.5-14.el7.centos.x86_64

已加载插件:fastestmirror, langpacks

参数 container-selinux-1.12.5-14.el7.centos.x86_64 没有匹配

不删除任何软件包

[root@CentOS1611 packages]# yum remove container-selinux-1.12.5-14.el7.centos.x86_6

已加载插件:fastestmirror, langpacks

参数 container-selinux-1.12.5-14.el7.centos.x86_6 没有匹配

不删除任何软件包


讯享网

[root@CentOS1611 packages]# yum remove docker

已加载插件:fastestmirror, langpacks

参数 docker 没有匹配

不删除任何软件包

 

 

 

Optional: Enable the edge and test repositories. These repositories are included in thedocker.repo file above but are disabled by default. You can enable them alongside the stable repository.

You can disable the edge or test repository by running the yum-config-manager command with the–disable flag. To re-enable it, use the –enable flag. The following command disables the edgerepository.

Note: Starting with Docker 17.06, stable releases are also pushed to the edge and testrepositories.

 

 

[root@CentOS1611 packages]# sudo yum install docker-ce

已加载插件:fastestmirror, langpacks

正在解决依赖关系

–> 正在检查事务

—> 软件包 docker-ce.x86_64.0.17.06.2.ce-1.el7.centos 将被 安装

–> 解决依赖关系完成

 

依赖关系解决

 

=========================================================================================================================================

Package 架构 版本 源 大小

=========================================================================================================================================

正在安装:

docker-ce x86_64 17.06.2.ce-1.el7.centos docker-ce-stable 21 M

 

事务概要

=========================================================================================================================================

安装 1 软件包

 

总下载量:21 M

安装大小:74 M

Is this ok [y/d/N]: y

Downloading packages:

警告:/var/cache/yum/x86_64/7/docker-ce-stable/packages/docker-ce-17.06.2.ce-1.el7.centos.x86_64.rpm: 头V4 RSA/SHA512 Signature, 密钥 ID 621e9f35: NOKEY

docker-ce-17.06.2.ce-1.el7.centos.x86_64.rpm 的公钥尚未安装

docker-ce-17.06.2.ce-1.el7.centos.x86_64.rpm | 21 MB 00:00:41

从 https://mirrors.aliyun.com/docker-ce/linux/centos/gpg 检索密钥

导入 GPG key 0x621E9F35:

用户ID : “Docker Release (CE rpm) <>”

指纹 : 060a 61c5 1b55 8a7f 742b 77aa c52f eb6b 621e 9f35

是否继续?[y/N]:y

Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

正在安装 : docker-ce-17.06.2.ce-1.el7.centos.x86_64 11

验证中 : docker-ce-17.06.2.ce-1.el7.centos.x86_64 11

 

已安装:

docker-ce.x86_64 0:17.06.2.ce-1.el7.centos

 

完毕!

[root@CentOS1611 packages]#

 

  1. $ sudo systemctl start docker

 

Verify that docker is installed correctly by running the hello-world

 

小讯
上一篇 2025-04-14 08:53
下一篇 2025-05-10 08:14

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/152485.html