2017-11-24 02:19:15 +00:00
|
|
|
## [CentOS](https://store.docker.com/images/centos/)
|
2016-12-10 09:00:25 +00:00
|
|
|
|
|
|
|
### 基本信息
|
2017-11-24 02:19:15 +00:00
|
|
|
|
2016-12-10 09:00:25 +00:00
|
|
|
[CentOS](https://en.wikipedia.org/wiki/CentOS) 是流行的 Linux 发行版,其软件包大多跟 RedHat 系列保持一致。
|
|
|
|
|
2017-11-24 02:19:15 +00:00
|
|
|
该仓库位于 https://store.docker.com/images/centos/ ,提供了 CentOS 从 5 ~ 7 各个版本的镜像。
|
2016-12-10 09:00:25 +00:00
|
|
|
|
|
|
|
### 使用方法
|
2017-11-24 02:19:15 +00:00
|
|
|
|
2016-12-10 09:00:25 +00:00
|
|
|
默认会启动一个最小化的 CentOS 环境。
|
|
|
|
|
2017-11-22 03:13:23 +00:00
|
|
|
```bash
|
2017-11-24 02:19:15 +00:00
|
|
|
$ docker run --name centos -it centos bash
|
2016-12-10 09:00:25 +00:00
|
|
|
bash-4.2#
|
|
|
|
```
|
|
|
|
|
|
|
|
### Dockerfile
|
|
|
|
|
2017-10-31 16:36:57 +00:00
|
|
|
请到 https://github.com/docker-library/docs/tree/master/centos 查看。
|