Update README.md for Docker Official Image.

[Liam: rewrote commit message]
Acked-by: Liam Crilly <liam@nginx.com>
Cc: Andrew Clayton <a.clayton@nginx.com>
Signed-off-by: Alejandro Colomar <alx@nginx.com>
This commit is contained in:
Artem Konev
2023-07-25 09:45:04 +01:00
committed by Alejandro Colomar
parent d0fdf5971f
commit 142006528d

View File

@@ -38,7 +38,7 @@ For details and available language packages, see the
### Docker ### Docker
``` console ``` console
$ docker pull docker.io/nginx/unit $ docker pull unit
``` ```
For a description of image tags, see the For a description of image tags, see the
@@ -71,6 +71,11 @@ For details and available language packages, see the
## Running a Hello World App ## Running a Hello World App
Unit runs apps in a
[variety of languages](https://unit.nginx.org/howto/samples/).
Let's consider a basic example,
choosing PHP for no particular reason.
Suppose you saved a PHP script as `/www/helloworld/index.php`: Suppose you saved a PHP script as `/www/helloworld/index.php`:
``` php ``` php
<?php echo "Hello, PHP on Unit!"; ?> <?php echo "Hello, PHP on Unit!"; ?>