標籤:html use tar sea ora git源 dock code 步驟
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-ol6gpgcheck=1enabled=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/
oracle linux 6 docker 安裝(包括編譯git源碼)