Docker升级发行分os6.5

Docker upgrade issue cent os 6.5

我正在尝试在我的 Cent Os 6.5 虚拟机上升级 docker,但遇到了一些问题。

当我尝试启动 docker 服务时它没有启动并且它的状态是停止的。

[root@localhost /]# sudo service docker status
docker is stopped

我尝试使用以下命令

安装 docker
[root@localhost /]# sudo yum install docker

它退出并出现以下错误

Transaction Check Error:
  file /usr/bin/docker from install of docker-1.5-5.el6.x86_64 conflicts with file from package docker-io-1.5.0-1.el6.x86_64

并使用 docker-io 命令

[root@localhost /]# sudo yum install docker-io
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centosmirror.go4hosting.in
 * epel: mirrors.vinahost.vn
 * extras: centosmirror.go4hosting.in
 * updates: centosmirror.go4hosting.in
Package docker-io-1.5.0-1.el6.x86_64 already installed and latest version
Nothing to do

所以这是我目前的情况,我只想删除当前的 docker 版本并安装 docker 1.6。

谢谢。

该软件包在 CentOS 6.5 上称为 docker-io(您可以在此处了解原因:https://docs.docker.com/installation/rhel/)。

但是,EPEL 目前只有 Docker 1.5,因此您无法从那里升级到 Docker 1.6:https://dl.fedoraproject.org/pub/epel/6/x86_64/repoview/docker-io.html

您可以在此处检查包裹状态的更新:https://admin.fedoraproject.org/updates/docker-io

首先你需要升级内核到>=3.19版本。然后你可以从存储库安装 docker v1.6.2: http://mirrors.kernel.org/fedora-epel/6/x86_64/