mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-03-11 04:14:38 +00:00
Simplify words and fix format issues
This commit is contained in:
@@ -31,8 +31,6 @@ Registry地址 用户名 仓库名 标签
|
||||
|
||||
#### 示例
|
||||
|
||||
运行以下命令:
|
||||
|
||||
```bash
|
||||
## 完整格式
|
||||
|
||||
@@ -65,8 +63,6 @@ $ docker pull ghcr.io/username/myapp:v1.0
|
||||
|
||||
当我们执行 `docker pull` 命令时,Docker 会输出详细的下载进度。让我们以 `ubuntu:24.04` 为例来解析这些信息。
|
||||
|
||||
运行以下命令:
|
||||
|
||||
```bash
|
||||
$ docker pull ubuntu:24.04
|
||||
24.04: Pulling from library/ubuntu
|
||||
@@ -80,8 +76,6 @@ docker.io/library/ubuntu:24.04
|
||||
|
||||
#### 输出解读
|
||||
|
||||
相关信息如下表:
|
||||
|
||||
| 输出内容 | 说明 |
|
||||
|---------|------|
|
||||
| `Pulling from library/ubuntu` | 正在从官方 ubuntu 仓库拉取 |
|
||||
@@ -118,10 +112,6 @@ flowchart TD
|
||||
| `--platform` | 指定平台架构 | `docker pull --platform linux/arm64 nginx` |
|
||||
| `--quiet, -q` | 静默模式 | `docker pull -q nginx` |
|
||||
|
||||
#### 概述
|
||||
|
||||
总体概述了以下内容。
|
||||
|
||||
#### 指定平台
|
||||
|
||||
在 Apple Silicon Mac 上拉取 x86 镜像:
|
||||
@@ -196,8 +186,6 @@ $ sudo systemctl restart docker # Linux
|
||||
|
||||
#### 查看镜像摘要
|
||||
|
||||
运行以下命令:
|
||||
|
||||
```bash
|
||||
$ docker images --digests ubuntu
|
||||
REPOSITORY TAG DIGEST IMAGE ID
|
||||
@@ -228,8 +216,6 @@ $ docker pull ubuntu@sha256:4bc3ae6596938cb0d9e5ac51a1152ec9dcac2a1c50829c74abd9
|
||||
|
||||
#### Q:提示镜像不存在
|
||||
|
||||
运行以下命令:
|
||||
|
||||
```bash
|
||||
Error: pull access denied, repository does not exist
|
||||
```
|
||||
@@ -242,8 +228,6 @@ Error: pull access denied, repository does not exist
|
||||
|
||||
#### Q:磁盘空间不足
|
||||
|
||||
运行以下命令:
|
||||
|
||||
```bash
|
||||
## 清理未使用的镜像
|
||||
|
||||
|
||||
Reference in New Issue
Block a user