Skip to content

Exec form ENTRYPOINT example possible error #23122

@zer0uno

Description

@zer0uno

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions