CentOS7(6.5)升级docker到较新版

centos7提供了对linux容器docker的支持,只需要通过

yum -y install docker

 即可安装,但是版本是0.11版本很老

 

如下是安装新版docker的办法

1.打开

http://rpm.pbone.net/index.php3/stat/4/idpl/27150558/dir/fedora_19/com/docker-io-1.1.2-3.fc19.x86_64.rpm.html

【centos 6.5:

先启动epel的库

yum install epel-release

  然后

http://rpm.pbone.net/index.php3/stat/4/idpl/26978558/dir/redhat_el_6/com/docker-io-1.1.2-1.el6.x86_64.rpm.html】

 

2.选择一个可使用的下载连接,使用wget下载

wget ftp://mirror.switch.ch/pool/4/mirror/fedora/linux/updates/19/x86_64/docker-io-1.1.2-3.fc19.x86_64.rpm

 

3.在下载当前目录,执行:

yum -y install docker-io-1.1.2-3.fc.x86_64.rpm

 

4.安装完成后检查docker版本

docker -v

 

 

你可能感兴趣的:(centos)