歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> CentOS 6/7系列安裝Docker

CentOS 6/7系列安裝Docker

日期:2017/2/28 14:28:48   编辑:Linux教程

CentOS

The Docker package is available via the EPEL repository. These instructions work for CentOS 6 and later. They will likely work for other binary compatible EL6 distributions such as Scientific Linux, but they haven't been tested.

Please note that this package is part of Extra Packages for Enterprise Linux (EPEL), a community effort to create and maintain additional packages for the RHEL distribution.

Also note that due to the current Docker limitations, Docker is able to run only on the 64 bit architecture.

To run Docker, you will need CentOS6 or higher, with a kernel version 2.6.32-431 or higher as this has specific kernel fixes to allow Docker to run.

使用EPEL軟件倉庫可以安裝docker,版本必須在centos6 以後

如果是centos7

下載並安裝這個軟件包

wget http://mirror.hust.edu.cn/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm

rpm -ivh

epel-release-7-0.2.noarch.rpm

如果是centos6

wget http://mirrors.hustunique.com/epel/6/i386/epel-release-6-8.noarch.rpm

rpm -ivh

epel-release-6-8.noarch.rpm

yum install docker-io 用上面這個命令安裝就可以了

如果之前的系統中存在docker這個軟件,最好先刪除掉這個包,一個老舊的包

$ service docker start

$ chkconfig docker on

Docker的搭建Gitlab CI 全過程詳解 http://www.linuxidc.com/Linux/2013-12/93537.htm

Docker安裝應用(CentOS 6.5_x64) http://www.linuxidc.com/Linux/2014-07/104595.htm

Docker 和一個正常的虛擬機有何區別? http://www.linuxidc.com/Linux/2013-12/93740.htm

在 Docker 中使用 MySQL http://www.linuxidc.com/Linux/2014-01/95354.htm

Docker 將改變所有事情 http://www.linuxidc.com/Linux/2013-12/93998.htm

Docker安裝應用(CentOS 6.5_x64) http://www.linuxidc.com/Linux/2014-07/104595.htm

Docker 的詳細介紹:請點這裡
Docker 的下載地址:請點這裡

Copyright © Linux教程網 All Rights Reserved