oracle linux 6 docker 安装

  docker对安装系统的内核版本有严格的要求,本文针对oracle linux 6.5进行讲解,其它系统参见:

  https://docs.docker.com/v1.5/installation/

  下面引用官网的一句话来只出docker对在oracle linux系统安装的要求:

  Docker requires the use of the Unbreakable Enterprise Kernel Release 3 (3.8.13) or higher on Oracle Linux. This kernel supports the Docker btrfs storage engine on both Oracle Linux 6 and 7.

  在安装时请确保可以联网。安装步骤如下:

1. 更新yum配置(参见: http://public-yum.oracle.com/getting-started.html):

  # cd /etc/yum.repos.d
  # wget http://yum.oracle.com/public-yum-ol6.repo

2. 修改 /etc/yum.repos.d/public-yum-ol6.repo添加如下配置:

[public_ol6_addons]
name=Oracle Linux $releasever addons ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/addons/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=1
enabled=1

 

3. 安装docker:

  yum install docker

4. 安装完成后启动docker(使用说明参见:https://docs.docker.com/v1.5/installation/oracle/):

  service docker start

5. 如果想自定义docker的一些启动配置,参见:

  https://docs.docker.com/v1.5/articles/systemd/

6. 源码下载:

  https://github.com/docker/docker

7. 编译:

  https://docs.docker.com/v1.5/contributing/devenvironment/

 

posted on 2017-03-23 12:12  霏霏暮雨  阅读(660)  评论(0编辑  收藏  举报

导航