Skip to content

Commit 7c78d1c

Browse files
committed
centos refer to centos:8, deprecated
Signed-off-by: Kang Huaishuai <khs1994@khs1994.com>
1 parent d4c6e59 commit 7c78d1c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cases/os/centos.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ CentOS(Community Enterprise Operating System,中文意思是:社区企业
1010

1111
### 使用 CentOS 官方镜像
1212

13-
使用 `docker run` 直接运行最新的 `CentOS` 镜像,并登录 `bash`
13+
使用 `docker run` 直接运行 `CentOS 7` 镜像,并登录 `bash`
1414

1515
```bash
16-
$ docker run -it centos bash
16+
$ docker run -it centos:7 bash
1717
Unable to find image 'centos:latest' locally
1818
latest: Pulling from library/centos
1919
3d8673bd162a: Pull complete
2020
Digest: sha256:a66ffcb73930584413de83311ca11a4cb4938c9b2521d331026dad970c19adf4
2121
Status: Downloaded newer image for centos:latest
2222
[root@43eb3b194d48 /]# cat /etc/redhat-release
23-
CentOS Linux release 7.2.1511 (Core)
23+
CentOS Linux release 7.9.2009 (Core)
2424
```
2525

2626
## Fedora 系统简介

0 commit comments

Comments
 (0)