mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-03-11 12:21:17 +00:00
Simplify words and fix format issues
This commit is contained in:
@@ -77,10 +77,6 @@ $ echo \
|
||||
|
||||
>以上命令会添加稳定版本的 Docker APT 源,如果需要测试版本的 Docker 请将 stable 改为 test。Debian11 可能不使用 `/etc/apt/keyrings/`,如 gpg 错误可以考虑更换为 `/etc/apt/trusted.gpg.d`,见 [issue 15727](https://github.com/docker/docs/issues/15727)。
|
||||
|
||||
#### 概述
|
||||
|
||||
总体概述了以下内容。
|
||||
|
||||
#### 安装 Docker
|
||||
|
||||
更新 apt 软件包缓存,并安装 `docker-ce`。
|
||||
@@ -110,8 +106,6 @@ $ sudo sh get-docker.sh --mirror Aliyun
|
||||
|
||||
### 3.2.4 启动 Docker
|
||||
|
||||
运行以下命令:
|
||||
|
||||
```bash
|
||||
$ sudo systemctl enable docker
|
||||
$ sudo systemctl start docker
|
||||
@@ -137,8 +131,6 @@ $ sudo usermod -aG docker $USER
|
||||
|
||||
### 3.2.6 测试 Docker 是否安装正确
|
||||
|
||||
运行以下命令:
|
||||
|
||||
```bash
|
||||
$ docker run --rm hello-world
|
||||
|
||||
|
||||
Reference in New Issue
Block a user