Skip to content

Commit 7ec5772

Browse files
authored
Merge pull request #546 from liangbinfudan/master
ubuntu.md update #545
2 parents ca01116 + 355dd3b commit 7ec5772

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

install/ubuntu.md

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,41 @@
66

77
### 系统要求
88

9-
Docker 支持以下版本的 [Ubuntu](https://ubuntu.com/server) 操作系统:
9+
Docker 支持诸多版本的 [Ubuntu](https://ubuntu.com/server) 操作系统。但是较旧的版本上将不会有Docker新版本的持续更新,以截至2024年中的几个 Ubuntu LTS(Long Term Support,长期支持)版本为例
1010

11-
* Ubuntu Hirsute 21.04
12-
* Ubuntu Groovy 20.10
13-
* Ubuntu Focal 20.04 (LTS)
14-
* Ubuntu Bionic 18.04 (LTS)
11+
* Ubuntu Noble 24.04 (LTS),Docker v27.2.1
12+
* Ubuntu Jammy 22.04 (LTS), Docker v27.2.1
13+
* Ubuntu Focal 20.04 (LTS), Docker v27.2.1
14+
* Ubuntu Bionic 18.04 (LTS),Docker v24.0.2
1515

16-
Docker 可以安装在 64 位的 x86 平台或 ARM 平台上。Ubuntu 发行版中,LTS(Long-Term-Support)长期支持版本,会获得 5 年的升级维护支持,这样的版本会更稳定,因此在生产环境中推荐使用 LTS 版本。
16+
在 Ubuntu LTS 版本上,目前 Docker 支持 amd64、arm64、armhf、ppc64el、s390x 等 5 个平台;而非 LTS 版本支持的平台通常较少。同时,LTS 版本会获得 5 年的升级维护支持,这样的系统会获得更长期的安全保障,因此在生产环境中推荐使用 LTS 版本。
1717

1818
### 卸载旧版本
1919

2020
旧版本的 Docker 称为 `docker` 或者 `docker-engine`,使用以下命令卸载旧版本:
2121

2222
```bash
23-
$ sudo apt-get remove docker \
24-
docker-engine \
25-
docker.io
23+
$ for pkg in docker \
24+
docker-engine \
25+
docker.io \
26+
docker-doc \
27+
docker-compose \
28+
podman-docker \
29+
containerd \
30+
runc;
31+
do
32+
sudo apt remove $pkg;
33+
done
2634
```
2735

2836
## 使用 APT 安装
2937

3038
由于 `apt` 源使用 HTTPS 以确保软件下载过程中不被篡改。因此,我们首先需要添加使用 HTTPS 传输的软件包以及 CA 证书。
3139

3240
```bash
33-
$ sudo apt-get update
41+
$ sudo apt update
3442

35-
$ sudo apt-get install \
43+
$ sudo apt install \
3644
apt-transport-https \
3745
ca-certificates \
3846
curl \
@@ -73,9 +81,9 @@ $ echo \
7381
更新 apt 软件包缓存,并安装 `docker-ce`
7482

7583
```bash
76-
$ sudo apt-get update
84+
$ sudo apt update
7785

78-
$ sudo apt-get install docker-ce docker-ce-cli containerd.io
86+
$ sudo apt install docker-ce docker-ce-cli containerd.io
7987
```
8088

8189
## 使用脚本自动安装

0 commit comments

Comments
 (0)