Skip to content

Commit 5e1a6d2

Browse files
committed
edit
1 parent b10d1fb commit 5e1a6d2

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

content/reference/compose-file/services.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -268,12 +268,9 @@ If the value is `[]` (empty list) or `''` (empty string), the default command de
268268
> ```yaml
269269
> command: /bin/sh -c 'echo "hello $$HOSTNAME"'
270270
> ```
271-
>
272-
> If the `entrypoint` (or the image's `ENTRYPOINT`) is configured to invoke a shell, use the exec form syntax for `command` to ensure proper processing. For example:
273-
>
274-
> ```yaml
275-
> command: [ "bundle", "exec", "thin", "-p", "3000" ]
276-
> ```
271+
272+
The value can also be a list, similar to the [exec-form syntax](/reference/dockerfile.md#exec-form)
273+
used by the [Dockerfile](/manuals/engine/reference.md#cmd).
277274

278275
### `configs`
279276

0 commit comments

Comments
 (0)