mirror of https://github.com/docker/docs.git
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:
parent
4cf38f289f
commit
f15a3a1c4b
|
@ -186,13 +186,7 @@ The entrypoint can also be a list, in a manner similar to
|
|||
[dockerfile](/engine/reference/builder.md#entrypoint):
|
||||
|
||||
```yaml
|
||||
entrypoint:
|
||||
- php
|
||||
- -d
|
||||
- zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so
|
||||
- -d
|
||||
- memory_limit=-1
|
||||
- vendor/bin/phpunit
|
||||
entrypoint: ["php", "-d", "memory_limit=-1", "vendor/bin/phpunit"]
|
||||
```
|
||||
|
||||
> **Note**: Setting `entrypoint` both overrides any default entrypoint set
|
||||
|
|
|
@ -567,13 +567,7 @@ The entrypoint can also be a list, in a manner similar to
|
|||
[dockerfile](/engine/reference/builder.md#entrypoint):
|
||||
|
||||
```yaml
|
||||
entrypoint:
|
||||
- php
|
||||
- -d
|
||||
- zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so
|
||||
- -d
|
||||
- memory_limit=-1
|
||||
- vendor/bin/phpunit
|
||||
entrypoint: ["php", "-d", "memory_limit=-1", "vendor/bin/phpunit"]
|
||||
```
|
||||
|
||||
> **Note**
|
||||
|
|
|
@ -1011,13 +1011,7 @@ The entrypoint can also be a list, in a manner similar to
|
|||
[dockerfile](/engine/reference/builder.md#entrypoint):
|
||||
|
||||
```yaml
|
||||
entrypoint:
|
||||
- php
|
||||
- -d
|
||||
- zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so
|
||||
- -d
|
||||
- memory_limit=-1
|
||||
- vendor/bin/phpunit
|
||||
entrypoint: ["php", "-d", "memory_limit=-1", "vendor/bin/phpunit"]
|
||||
```
|
||||
|
||||
> **Note**
|
||||
|
|
Loading…
Reference in New Issue