2019-11-06 06:53:09 +00:00
|
|
|
|
# [CentOS](https://hub.docker.com/_/centos)
|
2016-12-10 09:00:25 +00:00
|
|
|
|
|
2019-11-06 06:53:09 +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 系列保持一致。
|
|
|
|
|
|
2019-10-05 15:18:48 +00:00
|
|
|
|
该仓库位于 `https://hub.docker.com/_/centos` ,提供了 CentOS 从 5 ~ 8 各个版本的镜像。
|
2016-12-10 09:00:25 +00:00
|
|
|
|
|
2019-11-06 06:53:09 +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#
|
|
|
|
|
```
|
|
|
|
|
|
2019-11-06 06:53:09 +00:00
|
|
|
|
## Dockerfile
|
2016-12-10 09:00:25 +00:00
|
|
|
|
|
2017-10-31 16:36:57 +00:00
|
|
|
|
请到 https://github.com/docker-library/docs/tree/master/centos 查看。
|