Update OS examples to Debian 13, Ubuntu 26.04, Fedora 43

This commit is contained in:
yeasy
2026-04-28 09:24:17 +00:00
parent 229aec2f1e
commit fab4e41587
2 changed files with 8 additions and 8 deletions
+7 -7
View File
@@ -25,7 +25,7 @@ Debian 是一个常用的基础镜像。
```bash
$ docker run -it debian bash
root@668e178d8d69:/# cat /etc/issue
Debian GNU/Linux 12
Debian GNU/Linux 13
```
`Debian` 镜像很适合作为基础镜像构建自定义镜像
@@ -43,18 +43,18 @@ Debian GNU/Linux 12
Ubuntu 是目前最流行的 Linux 发行版之一
下面以 `ubuntu:24.04` 为例演示如何使用该镜像安装一些常用软件
下面以 `ubuntu:26.04` 为例演示如何使用该镜像安装一些常用软件
首先使用 `-ti` 参数启动容器登录 `bash`查看 `ubuntu` 的发行版本号
```bash
$ docker run -ti ubuntu:24.04 /bin/bash
$ docker run -ti ubuntu:26.04 /bin/bash
root@7d93de07bf76:/# cat /etc/os-release
PRETTY_NAME="Ubuntu 24.04 LTS"
PRETTY_NAME="Ubuntu 26.04 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04 LTS (Noble Numbat)"
VERSION_CODENAME=noble
VERSION_ID="26.04"
VERSION="26.04 LTS (Resolute Raccoon)"
VERSION_CODENAME=resolute
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"