
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