mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-03-25 19:25:27 +00:00
Convert bare URLs to markdown links
This commit is contained in:
@@ -172,7 +172,7 @@ $ docker run -dit --rm --network=laravel -p 8080:80 my/nginx
|
|||||||
|
|
||||||
本小节内容为了方便测试,将配置文件直接放到了镜像中,实际在使用时 **建议** 将配置文件作为 `config` 或 `secret` 挂载到容器中,请读者自行学习 `Kubernetes` 的相关内容。
|
本小节内容为了方便测试,将配置文件直接放到了镜像中,实际在使用时 **建议** 将配置文件作为 `config` 或 `secret` 挂载到容器中,请读者自行学习 `Kubernetes` 的相关内容。
|
||||||
|
|
||||||
由于篇幅所限本小节只是简单列出,更多内容可以参考 https://github.com/khs1994-docker/laravel-demo 项目。
|
由于篇幅所限本小节只是简单列出,更多内容可以参考 [khs1994-docker/laravel-demo](https://github.com/khs1994-docker/laravel-demo) 项目。
|
||||||
|
|
||||||
### 7.18.9 附录
|
### 7.18.9 附录
|
||||||
|
|
||||||
|
|||||||
@@ -33,6 +33,6 @@ LNMP 是一个经典的 Web 应用栈,由以下四个开源软件组合而成
|
|||||||
- 开发环境快速搭建
|
- 开发环境快速搭建
|
||||||
- 生产环境配置参考
|
- 生产环境配置参考
|
||||||
|
|
||||||
项目地址:https://github.com/khs1994-docker/lnmp
|
项目地址:[khs1994-docker/lnmp](https://github.com/khs1994-docker/lnmp)
|
||||||
|
|
||||||
通过该项目,你可以学习到如何使用 Docker Compose 定义多个相互关联的服务,以及如何在容器化环境中管理应用的生命周期。
|
通过该项目,你可以学习到如何使用 Docker Compose 定义多个相互关联的服务,以及如何在容器化环境中管理应用的生命周期。
|
||||||
|
|||||||
@@ -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、内存等系统资源的份额?
|
### 如何控制容器占用 CPU、内存等系统资源的份额?
|
||||||
|
|
||||||
|
|||||||
@@ -113,8 +113,8 @@ Docker Compose
|
|||||||
|
|
||||||
**学习资源:**
|
**学习资源:**
|
||||||
- 本书第 4-11 章:进阶篇
|
- 本书第 4-11 章:进阶篇
|
||||||
- Docker 官方最佳实践:https://docs.docker.com/develop/dev-best-practices/
|
- [Docker 官方最佳实践](https://docs.docker.com/develop/dev-best-practices/)
|
||||||
- Dockerfile 参考:https://docs.docker.com/engine/reference/builder/
|
- [Dockerfile 参考](https://docs.docker.com/engine/reference/builder/)
|
||||||
|
|
||||||
**时间投入:**
|
**时间投入:**
|
||||||
- 理论学习:8-10 小时
|
- 理论学习:8-10 小时
|
||||||
@@ -222,8 +222,8 @@ CI/CD 集成
|
|||||||
|
|
||||||
**学习资源:**
|
**学习资源:**
|
||||||
- 本书第 12-21 章:深入篇和实战篇
|
- 本书第 12-21 章:深入篇和实战篇
|
||||||
- Kubernetes 官方文档:https://kubernetes.io/docs/
|
- [Kubernetes 官方文档](https://kubernetes.io/docs/)
|
||||||
- CNCF 学习路线:https://landscape.cncf.io/
|
- [CNCF 学习路线](https://landscape.cncf.io/)
|
||||||
|
|
||||||
**时间投入:**
|
**时间投入:**
|
||||||
- 理论学习:15-20 小时
|
- 理论学习:15-20 小时
|
||||||
@@ -411,10 +411,10 @@ Kubernetes 进阶 (Week 24-36)
|
|||||||
|
|
||||||
#### 博客和社区
|
#### 博客和社区
|
||||||
|
|
||||||
- Docker 官方博客:https://www.docker.com/blog/
|
- [Docker 官方博客](https://www.docker.com/blog/)
|
||||||
- Kubernetes 官方博客:https://kubernetes.io/blog/
|
- [Kubernetes 官方博客](https://kubernetes.io/blog/)
|
||||||
- CNCF 博客:https://www.cncf.io/blog/
|
- [CNCF 博客](https://www.cncf.io/blog/)
|
||||||
- DZone:https://dzone.com/containers-cloud
|
- [DZone](https://dzone.com/containers-cloud)
|
||||||
|
|
||||||
### 认证指南
|
### 认证指南
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
> - [AlmaLinux](https://hub.docker.com/_/almalinux):由 CloudLinux 支持的企业级发行版,提供长期支持。
|
> - [AlmaLinux](https://hub.docker.com/_/almalinux):由 CloudLinux 支持的企业级发行版,提供长期支持。
|
||||||
> - [CentOS Stream](https://hub.docker.com/r/centos/centos):RHEL 的上游开发分支 (适合开发测试,不建议用于生产环境)。
|
> - [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
|
### Dockerfile
|
||||||
|
|
||||||
请到 https://github.com/docker-library/docs/tree/master/centos 查看。
|
请到 [CentOS 官方镜像文档目录](https://github.com/docker-library/docs/tree/master/centos) 查看。
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
[MySQL](https://en.wikipedia.org/wiki/MySQL) 是开源的关系数据库实现。
|
[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
|
### Dockerfile
|
||||||
|
|
||||||
请到 https://github.com/docker-library/docs/tree/master/mysql 查看
|
请到 [MySQL 官方镜像文档目录](https://github.com/docker-library/docs/tree/master/mysql) 查看。
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
[Nginx](https://en.wikipedia.org/wiki/Nginx) 是开源的高效的 Web 服务器实现,支持 HTTP、HTTPS、SMTP、POP3、IMAP 等协议。
|
[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
|
### Dockerfile
|
||||||
|
|
||||||
请到 https://github.com/docker-library/docs/tree/master/nginx 查看。
|
请到 [Nginx 官方镜像文档目录](https://github.com/docker-library/docs/tree/master/nginx) 查看。
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
[PHP](https://en.wikipedia.org/wiki/Php) (Hypertext Preprocessor 超文本预处理器的字母缩写) 是一种被广泛应用的开放源代码的多用途脚本语言,它可嵌入到 HTML 中,尤其适合 web 开发。
|
[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
|
### Dockerfile
|
||||||
|
|
||||||
请到 https://github.com/docker-library/docs/tree/master/php 查看。
|
请到 [PHP 官方镜像文档目录](https://github.com/docker-library/docs/tree/master/php) 查看。
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
[Redis](https://en.wikipedia.org/wiki/Redis) 是开源的内存 Key-Value 数据库实现。
|
[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
|
### Dockerfile
|
||||||
|
|
||||||
请到 https://github.com/docker-library/docs/tree/master/redis 查看。
|
请到 [Redis 官方镜像文档目录](https://github.com/docker-library/docs/tree/master/redis) 查看。
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
[Ubuntu](https://en.wikipedia.org/wiki/Ubuntu) 是流行的 Linux 发行版,其自带软件版本往往较新一些。
|
[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
|
### Dockerfile
|
||||||
|
|
||||||
请到 https://github.com/docker-library/docs/tree/master/ubuntu 查看。
|
请到 [Ubuntu 官方镜像文档目录](https://github.com/docker-library/docs/tree/master/ubuntu) 查看。
|
||||||
|
|||||||
Reference in New Issue
Block a user