服务器在线 - 服务器软件 - 网站地图 服务器在线,专注于服务器技术!

当前位置:主页 > 云和虚拟化 > Docker > 正文

CentOS修改163和epel源并安装Docker的方法

时间:2015-01-18    来源:服务器在线    投稿:泡泡    点击:

CentOS 修改源为163和指定epel源和Docker安装

地址:http://mirrors.163.com/.help/centos.html

使用说明

首先备份/etc/yum.repos.d/CentOS-Base.repo

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

下载对应版本repo文件, 放入/etc/yum.repos.d/(操作前请做好相应备份)

CentOS5

CentOS6

运行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

如果您的问题仍未解决,还可以加入服务器在线技术交流QQ群:8017413寻求帮助。


相关内容
最新热点内容
推荐内容