232131 发表于 2016-5-25 08:59:03

Centos修改yum源并安装docker

首先备份/etc/yum.repos.d/CentOS-Base.repo
下载对应版本repo文件, 放入/etc/yum.repos.d/(操作前请做好相应备份)
[*]CentOS5

[*]CentOS6

运行yum makecache生成缓存eple源:
1
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内核了,所以最好安装这个版本。
1
yum -y install docker-io




升级:

1
yum -y update docker-io




手动升级:
1
wget https://get.docker.io/builds/Linux/x86_64/docker-latest -O dockermv -f docker /usr/bin/docker




升级完成启动:
1
service docker start




开机启动:
1
chkconfig docker on



页: [1]
查看完整版本: Centos修改yum源并安装docker