diff --git a/07_dockerfile/7.18_multistage_builds_laravel.md b/07_dockerfile/7.18_multistage_builds_laravel.md index 56893a4..46c35c5 100644 --- a/07_dockerfile/7.18_multistage_builds_laravel.md +++ b/07_dockerfile/7.18_multistage_builds_laravel.md @@ -172,7 +172,7 @@ $ docker run -dit --rm --network=laravel -p 8080:80 my/nginx 本小节内容为了方便测试,将配置文件直接放到了镜像中,实际在使用时 **建议** 将配置文件作为 `config` 或 `secret` 挂载到容器中,请读者自行学习 `Kubernetes` 的相关内容。 -由于篇幅所限本小节只是简单列出,更多内容可以参考 https://github.com/khs1994-docker/laravel-demo 项目。 +由于篇幅所限本小节只是简单列出,更多内容可以参考 [khs1994-docker/laravel-demo](https://github.com/khs1994-docker/laravel-demo) 项目。 ### 7.18.9 附录 diff --git a/11_compose/11.9_lnmp.md b/11_compose/11.9_lnmp.md index e3a0406..60ab23e 100644 --- a/11_compose/11.9_lnmp.md +++ b/11_compose/11.9_lnmp.md @@ -33,6 +33,6 @@ LNMP 是一个经典的 Web 应用栈,由以下四个开源软件组合而成 - 开发环境快速搭建 - 生产环境配置参考 -项目地址:https://github.com/khs1994-docker/lnmp +项目地址:[khs1994-docker/lnmp](https://github.com/khs1994-docker/lnmp) 通过该项目,你可以学习到如何使用 Docker Compose 定义多个相互关联的服务,以及如何在容器化环境中管理应用的生命周期。 diff --git a/appendix/faq/README.md b/appendix/faq/README.md index 85babc9..a52ef96 100644 --- a/appendix/faq/README.md +++ b/appendix/faq/README.md @@ -84,7 +84,7 @@ $ docker run --network=my-net --ip=172.25.3.3 -itd --name=my-container busybox ### 可以在一个容器中同时运行多个应用进程么? -答:一般并不推荐在同一个容器内运行多个应用进程。如果有类似需求,可以通过一些额外的进程管理机制,比如 `supervisord` 来管理所运行的进程。可以参考 https://docs.docker.com/engine/containers/multi-service_container/ 。 +答:一般并不推荐在同一个容器内运行多个应用进程。如果有类似需求,可以通过一些额外的进程管理机制,比如 `supervisord` 来管理所运行的进程。可以参考 [Docker 官方说明](https://docs.docker.com/engine/containers/multi-service_container/)。 ### 如何控制容器占用 CPU、内存等系统资源的份额? diff --git a/appendix/learning_roadmap.md b/appendix/learning_roadmap.md index 7e3ba3e..0d53d41 100644 --- a/appendix/learning_roadmap.md +++ b/appendix/learning_roadmap.md @@ -113,8 +113,8 @@ Docker Compose **学习资源:** - 本书第 4-11 章:进阶篇 -- Docker 官方最佳实践:https://docs.docker.com/develop/dev-best-practices/ -- Dockerfile 参考:https://docs.docker.com/engine/reference/builder/ +- [Docker 官方最佳实践](https://docs.docker.com/develop/dev-best-practices/) +- [Dockerfile 参考](https://docs.docker.com/engine/reference/builder/) **时间投入:** - 理论学习:8-10 小时 @@ -222,8 +222,8 @@ CI/CD 集成 **学习资源:** - 本书第 12-21 章:深入篇和实战篇 -- Kubernetes 官方文档:https://kubernetes.io/docs/ -- CNCF 学习路线:https://landscape.cncf.io/ +- [Kubernetes 官方文档](https://kubernetes.io/docs/) +- [CNCF 学习路线](https://landscape.cncf.io/) **时间投入:** - 理论学习:15-20 小时 @@ -411,10 +411,10 @@ Kubernetes 进阶 (Week 24-36) #### 博客和社区 -- Docker 官方博客:https://www.docker.com/blog/ -- Kubernetes 官方博客:https://kubernetes.io/blog/ -- CNCF 博客:https://www.cncf.io/blog/ -- DZone:https://dzone.com/containers-cloud +- [Docker 官方博客](https://www.docker.com/blog/) +- [Kubernetes 官方博客](https://kubernetes.io/blog/) +- [CNCF 博客](https://www.cncf.io/blog/) +- [DZone](https://dzone.com/containers-cloud) ### 认证指南 diff --git a/appendix/repo/centos.md b/appendix/repo/centos.md index 053d85a..e40652b 100644 --- a/appendix/repo/centos.md +++ b/appendix/repo/centos.md @@ -11,7 +11,7 @@ > - [AlmaLinux](https://hub.docker.com/_/almalinux):由 CloudLinux 支持的企业级发行版,提供长期支持。 > - [CentOS Stream](https://hub.docker.com/r/centos/centos):RHEL 的上游开发分支 (适合开发测试,不建议用于生产环境)。 -该仓库位于 `https://hub.docker.com/_/centos`,提供了 CentOS 从 5 ~ 8 各个版本的镜像 (仅作为历史归档,不再更新)。 +该仓库位于 [Docker Hub 的 CentOS 官方镜像页](https://hub.docker.com/_/centos),提供了 CentOS 从 5 ~ 8 各个版本的镜像(仅作为历史归档,不再更新)。 ### 使用方法 @@ -29,4 +29,4 @@ $ docker run --name centos -it centos:7 bash ### Dockerfile -请到 https://github.com/docker-library/docs/tree/master/centos 查看。 +请到 [CentOS 官方镜像文档目录](https://github.com/docker-library/docs/tree/master/centos) 查看。 diff --git a/appendix/repo/mysql.md b/appendix/repo/mysql.md index 98ea91f..6fc6e87 100644 --- a/appendix/repo/mysql.md +++ b/appendix/repo/mysql.md @@ -4,7 +4,7 @@ [MySQL](https://en.wikipedia.org/wiki/MySQL) 是开源的关系数据库实现。 -该仓库位于 `https://hub.docker.com/_/mysql/`。具体可用版本以 Docker Hub 上的 tags 列表为准。 +该仓库位于 [Docker Hub 的 MySQL 官方镜像页](https://hub.docker.com/_/mysql/)。具体可用版本以 Docker Hub 上的 tags 列表为准。 ### 使用方法 @@ -43,4 +43,4 @@ $ docker run -it --rm \ ### Dockerfile -请到 https://github.com/docker-library/docs/tree/master/mysql 查看 +请到 [MySQL 官方镜像文档目录](https://github.com/docker-library/docs/tree/master/mysql) 查看。 diff --git a/appendix/repo/nginx.md b/appendix/repo/nginx.md index efcc1ae..e0842eb 100644 --- a/appendix/repo/nginx.md +++ b/appendix/repo/nginx.md @@ -4,7 +4,7 @@ [Nginx](https://en.wikipedia.org/wiki/Nginx) 是开源的高效的 Web 服务器实现,支持 HTTP、HTTPS、SMTP、POP3、IMAP 等协议。 -该仓库位于 `https://hub.docker.com/_/nginx/`。具体可用版本以 Docker Hub 上的 tags 列表为准。 +该仓库位于 [Docker Hub 的 Nginx 官方镜像页](https://hub.docker.com/_/nginx/)。具体可用版本以 Docker Hub 上的 tags 列表为准。 ### 使用方法 @@ -46,4 +46,4 @@ $ docker run -d \ ### Dockerfile -请到 https://github.com/docker-library/docs/tree/master/nginx 查看。 +请到 [Nginx 官方镜像文档目录](https://github.com/docker-library/docs/tree/master/nginx) 查看。 diff --git a/appendix/repo/php.md b/appendix/repo/php.md index 06baf11..2d7e5ba 100644 --- a/appendix/repo/php.md +++ b/appendix/repo/php.md @@ -4,7 +4,7 @@ [PHP](https://en.wikipedia.org/wiki/Php) (Hypertext Preprocessor 超文本预处理器的字母缩写) 是一种被广泛应用的开放源代码的多用途脚本语言,它可嵌入到 HTML 中,尤其适合 web 开发。 -该仓库位于 `https://hub.docker.com/_/php/`。具体可用版本以 Docker Hub 上的 tags 列表为准。 +该仓库位于 [Docker Hub 的 PHP 官方镜像页](https://hub.docker.com/_/php/)。具体可用版本以 Docker Hub 上的 tags 列表为准。 ### 使用方法 @@ -16,4 +16,4 @@ $ docker run -it --rm -v "$PWD":/app -w /app php:alpine php your-script.php ### Dockerfile -请到 https://github.com/docker-library/docs/tree/master/php 查看。 +请到 [PHP 官方镜像文档目录](https://github.com/docker-library/docs/tree/master/php) 查看。 diff --git a/appendix/repo/redis.md b/appendix/repo/redis.md index 0db8823..c09836a 100644 --- a/appendix/repo/redis.md +++ b/appendix/repo/redis.md @@ -4,7 +4,7 @@ [Redis](https://en.wikipedia.org/wiki/Redis) 是开源的内存 Key-Value 数据库实现。 -该仓库位于 `https://hub.docker.com/_/redis/`。具体可用版本以 Docker Hub 上的 tags 列表为准。 +该仓库位于 [Docker Hub 的 Redis 官方镜像页](https://hub.docker.com/_/redis/)。具体可用版本以 Docker Hub 上的 tags 列表为准。 ### 使用方法 @@ -48,4 +48,4 @@ $ docker run -it --rm \ ### Dockerfile -请到 https://github.com/docker-library/docs/tree/master/redis 查看。 +请到 [Redis 官方镜像文档目录](https://github.com/docker-library/docs/tree/master/redis) 查看。 diff --git a/appendix/repo/ubuntu.md b/appendix/repo/ubuntu.md index 7eb9d81..f2a6b63 100644 --- a/appendix/repo/ubuntu.md +++ b/appendix/repo/ubuntu.md @@ -4,7 +4,7 @@ [Ubuntu](https://en.wikipedia.org/wiki/Ubuntu) 是流行的 Linux 发行版,其自带软件版本往往较新一些。 -该仓库位于 `https://hub.docker.com/_/ubuntu/`。具体可用版本以 Docker Hub 上的 tags 列表为准。 +该仓库位于 [Docker Hub 的 Ubuntu 官方镜像页](https://hub.docker.com/_/ubuntu/)。具体可用版本以 Docker Hub 上的 tags 列表为准。 ### 使用方法 @@ -17,4 +17,4 @@ root@523c70904d54:/# ### Dockerfile -请到 https://github.com/docker-library/docs/tree/master/ubuntu 查看。 +请到 [Ubuntu 官方镜像文档目录](https://github.com/docker-library/docs/tree/master/ubuntu) 查看。