From 25178fd616df2abc71db9c5e91bade0c4f0e4bf8 Mon Sep 17 00:00:00 2001 From: mzeht Date: Tue, 7 Feb 2017 22:04:05 +0800 Subject: [PATCH] =?UTF-8?q?appendix/repo=E7=9B=AE=E5=BD=95=E4=B8=8B?= =?UTF-8?q?=E8=AF=AD=E6=B3=95=E6=A0=BC=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- appendix/repo/centos.md | 4 +++- appendix/repo/mongodb.md | 5 +++-- appendix/repo/mysql.md | 4 +++- appendix/repo/nginx.md | 4 +++- appendix/repo/nodejs.md | 2 +- appendix/repo/redis.md | 4 +++- appendix/repo/wordpress.md | 5 +++-- 7 files changed, 19 insertions(+), 9 deletions(-) diff --git a/appendix/repo/centos.md b/appendix/repo/centos.md index 44db1ab..a17b2f5 100644 --- a/appendix/repo/centos.md +++ b/appendix/repo/centos.md @@ -3,7 +3,7 @@ ### 基本信息 [CentOS](https://en.wikipedia.org/wiki/CentOS) 是流行的 Linux 发行版,其软件包大多跟 RedHat 系列保持一致。 -该仓库位于 https://hub.docker.com/_/centos/,提供了 CentOS 从 5 ~ 7 各个版本的镜像。 +该仓库位于 https://hub.docker.com/_/centos/ ,提供了 CentOS 从 5 ~ 7 各个版本的镜像。 ### 使用方法 默认会启动一个最小化的 CentOS 环境。 @@ -56,3 +56,5 @@ LABEL name="CentOS Base Image" \ CMD ["/bin/bash"] ``` + + diff --git a/appendix/repo/mongodb.md b/appendix/repo/mongodb.md index 3ee4452..47304e8 100644 --- a/appendix/repo/mongodb.md +++ b/appendix/repo/mongodb.md @@ -3,7 +3,7 @@ ### 基本信息 [MongoDB](https://en.wikipedia.org/wiki/MongoDB) 是开源的 NoSQL 数据库实现。 -该仓库位于 https://hub.docker.com/_/mongo/,提供了 MongoDB 2.x ~ 3.x 各个版本的镜像。 +该仓库位于 https://hub.docker.com/_/mongo/ ,提供了 MongoDB 2.x ~ 3.x 各个版本的镜像。 ### 使用方法 默认会在 `27017` 端口启动数据库。 @@ -260,4 +260,5 @@ ENTRYPOINT ["/entrypoint.sh"] EXPOSE 27017 CMD ["mongod"] -``` \ No newline at end of file +``` + diff --git a/appendix/repo/mysql.md b/appendix/repo/mysql.md index de5b6b4..58f22f3 100644 --- a/appendix/repo/mysql.md +++ b/appendix/repo/mysql.md @@ -3,7 +3,7 @@ ### 基本信息 [MySQL](https://en.wikipedia.org/wiki/MySQL) 是开源的关系数据库实现。 -该仓库位于 https://hub.docker.com/_/mysql/,提供了 MySQL 各个版本的镜像,包括 5.6 系列、5.7 系列等。 +该仓库位于 https://hub.docker.com/_/mysql/ ,提供了 MySQL 各个版本的镜像,包括 5.6 系列、5.7 系列等。 ### 使用方法 默认会在 `3306` 端口启动数据库。 @@ -122,3 +122,5 @@ ENTRYPOINT ["/entrypoint.sh"] EXPOSE 3306 CMD ["mysqld", "--datadir=/var/lib/mysql", "--user=mysql"] ``` + + diff --git a/appendix/repo/nginx.md b/appendix/repo/nginx.md index ff88922..62455d2 100644 --- a/appendix/repo/nginx.md +++ b/appendix/repo/nginx.md @@ -3,7 +3,7 @@ ### 基本信息 [Nginx](https://en.wikipedia.org/wiki/Nginx) 是开源的高效的 Web 服务器实现,支持 HTTP、HTTPS、SMTP、POP3、IMAP 等协议。 -该仓库位于 https://hub.docker.com/_/nginx/,提供了 Nginx 1.0 ~ 1.11.x 各个版本的镜像。 +该仓库位于 https://hub.docker.com/_/nginx/ ,提供了 Nginx 1.0 ~ 1.11.x 各个版本的镜像。 ### 使用方法 下面的命令将作为一个静态页面服务器启动。 @@ -99,3 +99,5 @@ EXPOSE 80 443 CMD ["nginx", "-g", "daemon off;"] ``` + + diff --git a/appendix/repo/nodejs.md b/appendix/repo/nodejs.md index 55295a6..a2993b0 100644 --- a/appendix/repo/nodejs.md +++ b/appendix/repo/nodejs.md @@ -3,7 +3,7 @@ ### 基本信息 [Node.js](https://en.wikipedia.org/wiki/Node.js)是基于 JavaScript 的可扩展服务端和网络软件开发平台。 -该仓库位于 https://hub.docker.com/_/node/,提供了 Node.js 0.10 ~ 6.3.x 各个版本的镜像。 +该仓库位于 https://hub.docker.com/_/node/ ,提供了 Node.js 0.10 ~ 6.3.x 各个版本的镜像。 ### 使用方法 在项目中创建一个 Dockerfile。 diff --git a/appendix/repo/redis.md b/appendix/repo/redis.md index cadeefc..a3771e6 100644 --- a/appendix/repo/redis.md +++ b/appendix/repo/redis.md @@ -3,7 +3,7 @@ ### 基本信息 [Redis](https://en.wikipedia.org/wiki/Redis) 是开源的内存 Key-Value 数据库实现。 -该仓库位于 https://hub.docker.com/_/redis/,提供了 Redis 3.x 各个版本的镜像。 +该仓库位于 https://hub.docker.com/_/redis/ ,提供了 Redis 3.x 各个版本的镜像。 ### 使用方法 默认会在 `6379` 端口启动数据库。 @@ -139,3 +139,5 @@ ENTRYPOINT ["docker-entrypoint.sh"] EXPOSE 6379 CMD [ "redis-server" ] ``` + + diff --git a/appendix/repo/wordpress.md b/appendix/repo/wordpress.md index 1250db5..1bad0ab 100644 --- a/appendix/repo/wordpress.md +++ b/appendix/repo/wordpress.md @@ -3,7 +3,7 @@ ### 基本信息 [WordPress](https://en.wikipedia.org/wiki/WordPress) 是开源的 Blog 和内容管理系统框架,它基于 PhP 和 MySQL。 -该仓库位于 https://hub.docker.com/_/wordpress/,提供了 WordPress 4.x 版本的镜像。 +该仓库位于 https://hub.docker.com/_/wordpress/ ,提供了 WordPress 4.x 版本的镜像。 ### 使用方法 启动容器需要 MySQL 的支持,默认端口为 `80`。 @@ -114,4 +114,5 @@ COPY docker-entrypoint.sh /entrypoint.sh # grr, ENTRYPOINT resets CMD now ENTRYPOINT ["/entrypoint.sh"] CMD ["apache2-foreground"] -``` \ No newline at end of file +``` +