diff --git a/SUMMARY.md b/SUMMARY.md index f4a5f52..be7edff 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -149,11 +149,12 @@ * [附录二:热门镜像介绍](appendix/repo/README.md) * [Ubuntu](appendix/repo/ubuntu.md) * [CentOS](appendix/repo/centos.md) + * [Nginx](appendix/repo/nginx.md) + * [PHP](appendix/repo/php.md) * [MySQL](appendix/repo/mysql.md) + * [WordPress](appendix/repo/wordpress.md) * [MongoDB](appendix/repo/mongodb.md) * [Redis](appendix/repo/redis.md) - * [Nginx](appendix/repo/nginx.md) - * [WordPress](appendix/repo/wordpress.md) * [Node.js](appendix/repo/nodejs.md) * [附录三:Docker 命令查询](appendix/command/README.md) * [附录四:Dockerfile 最佳实践](appendix/best_practices.md) diff --git a/appendix/repo/php.md b/appendix/repo/php.md new file mode 100644 index 0000000..becf8c8 --- /dev/null +++ b/appendix/repo/php.md @@ -0,0 +1,19 @@ +## [PHP](https://hub.docker.com/_/php/) + +### 基本信息 + +[PHP](https://en.wikipedia.org/wiki/php) PHP(“PHP: Hypertext Preprocessor”,超文本预处理器的字母缩写)是一种被广泛应用的开放源代码的多用途脚本语言,它可嵌入到 HTML 中,尤其适合 web 开发。 + +该仓库位于 `https://hub.docker.com/_/php/` ,提供了 PHP 5.x ~ 7.x 各个版本的镜像。 + +### 使用方法 + +下面的命令将运行一个已有的 PHP 脚本。 + +```bash +$ 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 查看。