運行yum makecache生成緩存
eple源:
rpm -Uvh http://ftp.sjtu.edu.cn/fedora/epel/6/i386/epel-release-6-8.noarch.rpm
docker 安裝:
You will need RHEL 6.5 or higher, with a RHEL 6 kernel version 2.6.32-431 or higher as this has specific kernel fixes to allow Docker to work.
CentOS 6.5已經是2.6.32-431內核了,所以最好安裝這個版本。
yum -y install docker-io
升級:yum -y update docker-io
手動升級:
wget https://get.docker.io/builds/Linux/x86_64/docker-latest -O docker mv -f docker /usr/bin/docker
升級完成
啟動:
service docker start
開機啟動:
chkconfig docker on