mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-03-23 10:15:24 +00:00
Add blank lines before headers
This commit is contained in:
@@ -73,6 +73,7 @@ RUN apt-get update && apt-get install -y \
|
||||
> 注意:如果你的字符串中包含空格,必须将字符串放入引号中或者对空格使用转义。如果字符串内容本身就包含引号,必须对引号使用转义。
|
||||
|
||||
```docker
|
||||
|
||||
## Set one or more individual labels
|
||||
|
||||
LABEL com.example.version="0.0.1-beta"
|
||||
@@ -87,6 +88,7 @@ LABEL com.example.version.is-production=""
|
||||
一个镜像可以包含多个标签,但建议将多个标签放入到一个 `LABEL` 指令中。
|
||||
|
||||
```docker
|
||||
|
||||
## Set multiple labels at once, using line-continuation characters to break long lines
|
||||
|
||||
LABEL vendor=ACME\ Incorporated \
|
||||
|
||||
@@ -48,6 +48,7 @@ Docker 安装配置
|
||||
|
||||
**验证学习成果:**
|
||||
```bash
|
||||
|
||||
# 完成以下任务说明基础入门完成
|
||||
1. 运行官方 nginx 镜像,访问 http://localhost
|
||||
2. 使用 docker exec 进入容器修改首页
|
||||
@@ -468,6 +469,7 @@ Kubernetes 进阶 (Week 24-36)
|
||||
|
||||
准备建议:
|
||||
```bash
|
||||
|
||||
# 1. 学习本书第 1-11 章(基础到中级)
|
||||
# 2. 完成 20+ 个实战项目
|
||||
# 3. 参考官方学习指南
|
||||
@@ -781,6 +783,7 @@ A(要点):
|
||||
### 学习进度跟踪模板
|
||||
|
||||
```markdown
|
||||
|
||||
# Docker 学习进度跟踪
|
||||
|
||||
## 第一阶段:基础入门(目标:2 周)
|
||||
@@ -831,6 +834,7 @@ A(要点):
|
||||
**常用命令速查:**
|
||||
|
||||
```bash
|
||||
|
||||
# 镜像管理
|
||||
docker build -t image:tag . # 构建镜像
|
||||
docker images # 列出镜像
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
|
||||
```docker
|
||||
FROM node:20
|
||||
|
||||
## replace this with your application's default port
|
||||
|
||||
EXPOSE 8888
|
||||
|
||||
Reference in New Issue
Block a user