mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-08-10 16:37:34 +00:00
Fix header hierarchy levels
This commit is contained in:
@@ -137,7 +137,7 @@ RUN apt-get update && \
|
||||
|
||||
```
|
||||
|
||||
#### 查看镜像的分层
|
||||
### 2.1.5 查看镜像的分层
|
||||
|
||||
```bash
|
||||
## 查看镜像的历史(每层的构建记录)
|
||||
@@ -153,7 +153,7 @@ a6bd71f48f68 2 weeks ago CMD ["nginx" "-g" "daemon off;"] 0B
|
||||
...
|
||||
```
|
||||
|
||||
### 2.1.5 镜像的标识
|
||||
### 2.1.6 镜像的标识
|
||||
|
||||
Docker 镜像有多种标识方式:
|
||||
|
||||
@@ -198,7 +198,7 @@ nginx latest sha256:6db391d1c0cfb30588ba0bf72ea999404f2764184d8b8d10d89e8
|
||||
```
|
||||
> 💡 笔者建议:在生产环境使用镜像摘要而非标签,因为标签可以被覆盖,但摘要是不可变的。
|
||||
|
||||
### 2.1.6 镜像的来源
|
||||
### 2.1.7 镜像的来源
|
||||
|
||||
Docker 镜像可以通过以下方式获取:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user