
yum -y install docker
即可安装,但是版本是0.11版本很老
如下是安装新版docker的办法
1.打开
<a target="_blank" href="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">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</a>
【centos 6.5:
先启动epel的库

yum install epel-release
然后
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