mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-08-10 16:37:34 +00:00
Update nginx, Debian, Ubuntu, Fedora, Docker versions
This commit is contained in:
@@ -25,7 +25,7 @@ Debian 是一个常用的基础镜像。
|
||||
```bash
|
||||
$ docker run -it debian bash
|
||||
root@668e178d8d69:/# cat /etc/issue
|
||||
Debian GNU/Linux 13
|
||||
Debian GNU/Linux 12
|
||||
```
|
||||
`Debian` 镜像很适合作为基础镜像,构建自定义镜像。
|
||||
|
||||
@@ -43,18 +43,18 @@ Debian GNU/Linux 13
|
||||
Ubuntu 是目前最流行的 Linux 发行版之一。
|
||||
|
||||
|
||||
下面以 `ubuntu:26.04` 为例,演示如何使用该镜像安装一些常用软件。
|
||||
下面以 `ubuntu:24.04` 为例,演示如何使用该镜像安装一些常用软件。
|
||||
|
||||
首先使用 `-ti` 参数启动容器,登录 `bash`,查看 `ubuntu` 的发行版本号。
|
||||
|
||||
```bash
|
||||
$ docker run -ti ubuntu:26.04 /bin/bash
|
||||
$ docker run -ti ubuntu:24.04 /bin/bash
|
||||
root@7d93de07bf76:/# cat /etc/os-release
|
||||
PRETTY_NAME="Ubuntu 26.04 LTS"
|
||||
PRETTY_NAME="Ubuntu 24.04 LTS"
|
||||
NAME="Ubuntu"
|
||||
VERSION_ID="26.04"
|
||||
VERSION="26.04 LTS (Resolute Raccoon)"
|
||||
VERSION_CODENAME=resolute
|
||||
VERSION_ID="24.04"
|
||||
VERSION="24.04 LTS (Noble Numbat)"
|
||||
VERSION_CODENAME=noble
|
||||
ID=ubuntu
|
||||
ID_LIKE=debian
|
||||
HOME_URL="https://www.ubuntu.com/"
|
||||
|
||||
Reference in New Issue
Block a user