compose-file: use JSON notation for entrypoint example

This format is also supported by YAML, and similar to
how it's used in the Dockerfile.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2020-03-17 14:09:57 +01:00
parent 4cf38f289f
commit f15a3a1c4b
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
3 changed files with 3 additions and 21 deletions

View File

@ -186,13 +186,7 @@ The entrypoint can also be a list, in a manner similar to
[dockerfile](/engine/reference/builder.md#entrypoint): [dockerfile](/engine/reference/builder.md#entrypoint):
```yaml ```yaml
entrypoint: entrypoint: ["php", "-d", "memory_limit=-1", "vendor/bin/phpunit"]
- php
- -d
- zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so
- -d
- memory_limit=-1
- vendor/bin/phpunit
``` ```
> **Note**: Setting `entrypoint` both overrides any default entrypoint set > **Note**: Setting `entrypoint` both overrides any default entrypoint set

View File

@ -567,13 +567,7 @@ The entrypoint can also be a list, in a manner similar to
[dockerfile](/engine/reference/builder.md#entrypoint): [dockerfile](/engine/reference/builder.md#entrypoint):
```yaml ```yaml
entrypoint: entrypoint: ["php", "-d", "memory_limit=-1", "vendor/bin/phpunit"]
- php
- -d
- zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so
- -d
- memory_limit=-1
- vendor/bin/phpunit
``` ```
> **Note** > **Note**

View File

@ -1011,13 +1011,7 @@ The entrypoint can also be a list, in a manner similar to
[dockerfile](/engine/reference/builder.md#entrypoint): [dockerfile](/engine/reference/builder.md#entrypoint):
```yaml ```yaml
entrypoint: entrypoint: ["php", "-d", "memory_limit=-1", "vendor/bin/phpunit"]
- php
- -d
- zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so
- -d
- memory_limit=-1
- vendor/bin/phpunit
``` ```
> **Note** > **Note**