Merge pull request #1066 from infosiftr/phpdocs

Clarify that all variants include the PHP cli
This commit is contained in:
Tianon Gravi 2017-11-15 15:20:29 -08:00 committed by GitHub
commit 42b58cdff4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,8 @@ For many simple, single file projects, you may find it inconvenient to write a c
$ docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp %%IMAGE%%:7.0-cli php your-script.php $ docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp %%IMAGE%%:7.0-cli php your-script.php
``` ```
Note that all variants of the `php` image contain the PHP cli.
## With Apache ## With Apache
More commonly, you will probably want to run PHP in conjunction with Apache httpd. Conveniently, there's a version of the PHP container that's packaged with the Apache web server. More commonly, you will probably want to run PHP in conjunction with Apache httpd. Conveniently, there's a version of the PHP container that's packaged with the Apache web server.