From 185da0cf887154691d113d31c9f163085d60c858 Mon Sep 17 00:00:00 2001 From: Baohua Yang Date: Sat, 21 Feb 2026 22:44:57 -0800 Subject: [PATCH] Fix period mark --- 01_introduction/1.1_quickstart.md | 12 ++++++------ 15_cloud/intro.md | 6 +++--- README.md | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/01_introduction/1.1_quickstart.md b/01_introduction/1.1_quickstart.md index 95dec38..e7cc9f4 100644 --- a/01_introduction/1.1_quickstart.md +++ b/01_introduction/1.1_quickstart.md @@ -2,7 +2,7 @@ 本节将通过一个简单的 Web 应用例子,带你快速体验 Docker 的核心流程:构建镜像、运行容器。 -### 1.1.1 。准备代码 +### 1.1.1 准备代码 创建一个名为 `hello-docker` 的文件夹,并在其中创建一个 `index.html` 文件: @@ -10,7 +10,7 @@

Hello, Docker!

``` -### 1.1.2 。编写 Dockerfile +### 1.1.2 编写 Dockerfile 在同级目录下创建一个名为 `Dockerfile` (无后缀) 的文件: @@ -19,7 +19,7 @@ FROM nginx:alpine COPY index.html /usr/share/nginx/html/index.html ``` -### 1.1.3 。构建镜像 +### 1.1.3 构建镜像 打开终端,进入该目录,执行构建命令: @@ -31,7 +31,7 @@ $ docker build -t my-hello-world . * `-t my-hello-world`:给镜像起个名字 (标签) * `.`:指定上下文路径为当前目录 -### 1.1.4 。运行容器 +### 1.1.4 运行容器 使用刚才构建的镜像启动一个容器: @@ -43,11 +43,11 @@ $ docker run -d -p 8080:80 my-hello-world * `-d`:后台运行 * `-p 8080:80`:将宿主机的 8080 端口映射到容器的 80 端口 -### 1.1.5 。访问测试 +### 1.1.5 访问测试 打开浏览器访问 [http://localhost:8080](http://localhost:8080),你应该能看到 “Hello,Docker!”。 -### 1.1.6 。清理 +### 1.1.6 清理 停止并删除容器: diff --git a/15_cloud/intro.md b/15_cloud/intro.md index f593119..853ae1c 100644 --- a/15_cloud/intro.md +++ b/15_cloud/intro.md @@ -2,21 +2,21 @@ 随着容器技术的普及,目前主流的云计算服务商都提供了成熟的容器服务。与容器相关的云计算服务主要分为以下几种类型: -### 15.1.1 。容器编排托管服务 +### 15.1.1 容器编排托管服务 这是目前最主流的形式。云厂商托管 Kubernetes 的控制平面 (Master 节点),用户只需管理工作节点 (Worker Node)。 * **优势**:降低了 Kubernetes 集群的维护成本,高可用性由厂商保证。 * **典型服务**:AWS EKS,Azure AKS,Google GKE,阿里云 ACK,腾讯云 TKE。 -### 15.1.2 。容器实例服务 +### 15.1.2 容器实例服务 这一类服务通常被称为 CaaS (Container as a Service)。用户无需管理底层服务器 (EC2/CVM),只需提供镜像和配置即可运行容器。 * **优势**:极致的弹性,按秒计费,零运维。 * **典型服务**:AWS Fargate,Azure Container Instances,Google Cloud Run,阿里云 ECI。 -### 15.1.3 。镜像仓库服务 +### 15.1.3 镜像仓库服务 提供安全、可靠的私有 Docker 镜像存储服务,通常与云厂商的 CI/CD 流水线深度集成。 diff --git a/README.md b/README.md index 71b5c8d..98e605f 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![图](https://img.shields.io/github/stars/yeasy/docker_practice.svg?style=social&label=Stars)](https://github.com/yeasy/docker_practice) [![图](https://img.shields.io/github/release/yeasy/docker_practice/all.svg)](https://github.com/yeasy/docker_practice/releases) [![图](https://img.shields.io/badge/Based-Docker%20Engine%20v29.x-blue.svg)](https://docs.docker.com/engine/release-notes/) [![图](https://img.shields.io/badge/Docker%20%E6%8A%80%E6%9C%AF%E5%85%A5%E9%97%A8%E4%B8%8E%E5%AE%9E%E6%88%98-jd.com-red.svg)][1] -**v1.5.7** +**v1.5.8** [Docker](https://www.docker.com) 是个划时代的开源项目,它彻底释放了计算虚拟化的威力,极大提高了应用的维护效率,降低了云计算应用开发的成本!使用 Docker,可以让应用的部署、测试和分发都变得前所未有的高效和轻松!