Exec form ENTRYPOINT example possible error
Is this a docs issue?
- [x] 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.
either form of CMD means that you can use exec, run, etc to add more flags and options to the container and move frequently/definitely used flags/options in DOCKERFILE.
I think this is what that ment if we go with your suggestion the context change to only able to add other flags and options only using
exec.
If this clears the doubt and you are clear on this topic. Please close the issue @zer0uno