docker_practice/install/centos.md
2014-09-26 14:14:13 +08:00

23 lines
561 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## CentOS系列安装docker
Docker支持CentOS6及以后的版本。
### CentOS6
对于CentOS6可以使用[EPEL](https://fedoraproject.org/wiki/EPEL)库安装Docker命令如下
```
$ sudo yum install http://mirrors.yun-idc.com/epel/6/i386/epel-release-6-8.noarch.rpm
$ sudo yum install docker-io
```
### CentOS7
CentOS7系统CentOS-Extras库中已带Docker可以直接安装
```
$ sudo yum install docker
```
安装之后启动Docker服务并让它随系统启动自动加载。
```
$ sudo service docker start
$ sudo chkconfig docker on
```