-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Description
Is this a docs issue?
- My issue is about the documentation content or website
Type of issue
Information is incorrect
Description
Under "Exec form ENTRYPOINT example" the docs says:
You can use the exec form of ENTRYPOINT to set fairly stable default commands and arguments and then use either form of CMD to set additional defaults that are more likely to be changed.
but previous it stated:
If CMD is used to provide default arguments for the ENTRYPOINT instruction, both the CMD and ENTRYPOINT instructions should be specified in the exec form.
Consequently I'd say that's not correct the sentence "then use either form of CMD to set additional defaults that are more likely to be changed".
Location
https://docs.docker.com/reference/dockerfile/#exec-form-entrypoint-example
Suggestion
I think the sentence should be rephrased in: You can use the exec form of ENTRYPOINT to set fairly stable default commands and arguments and then use exec form of CMD to set additional defaults that are more likely to be changed.