标签:x86_64 需要 文件 缓存 3.x linux 自启 开机自启动 添加
1、要求
2、查看当前系统的位数和版本
[root@jacky jacky]# uname -r 2.6.32-431.el6.x86_64 [root@jacky jacky]# cat /etc/issue CentOS release 6.5 (Final) Kernel \r on an \m
说明当前版本是centos6.5 64位系统
3、 安装yum优先级插件
#yum installyum-priorities
4、 安装epel
# rpm -Uvh http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm # rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
5、查看是否安装epel成功
# rpm -q epel-release
6、导入key
# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
7、修改/etc/yum.repos.d/epel.repo文件,在最后添加一条属性 priority=11
# vim /etc/yum.repos.d/epel.repo
8、重建缓存
yum makecache
9、安装完成之后,确保yum list能找到Docker的相关rpm包
[root@jacky jacky]# yum list | grep docker docker-io.x86_64 1.7.1-2.el6 @epel docker.x86_64 1.5-5.el6 epel docker-io-devel.x86_64 1.7.1-2.el6 epel docker-io-fish-completion.x86_64 1.7.1-2.el6 epel docker-io-logrotate.x86_64 1.7.1-2.el6 epel docker-io-vim.x86_64 1.7.1-2.el6 epel docker-io-zsh-completion.x86_64 1.7.1-2.el6 epel fedora-dockerfiles.x86_64 0-0.12.gitf6cd84c.el6 epel golang-github-docker-libcontainer.x86_64 1.1.0-10.gitdb65c35.el6 epel golang-github-docker-libcontainer-devel.x86_64 golang-github-docker-libtrust-devel.noarch golang-github-docker-libtrust-unit-test.x86_64 golang-github-docker-spdystream-devel.noarch golang-github-docker-spdystream-unit-test.x86_64 golang-github-fsouza-go-dockerclient-devel.noarch golang-github-fsouza-go-dockerclient-unit-test.x86_64 python-docker-py.x86_64 0.7.0-1.el6 epel python-docker-registry-core.noarch 2.0.1-2.el6 epel python-dockerfile-parse.noarch 0.0.5-1.el6 epel [root@jacky jacky]#
10、升级内核
http://www.cnblogs.com/520playboy/p/7041819.html
11、安装docker
#yum install docker-io
12、更新
device-mapper-libs
# yum upgrade device-mapper-libs
13、启动docker
[root@jacky jacky]# service docker service
14、设置docker开机自启动
#chkconfig docker on
15、测试
[root@jacky jacky]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
18、查看docker版本
[root@jacky jacky]# docker --version
Docker version 1.7.1, build 786b29d/1.7.1
安装成功
学习docker系列-在centos6.5中安装docker
标签:x86_64 需要 文件 缓存 3.x linux 自启 开机自启动 添加
原文地址:http://www.cnblogs.com/520playboy/p/7042502.html