mirror of https://github.com/docker/cli.git
Adjusting glossary reference and clarrifying the start of a Dockerfile
Signed-off-by: Brandon Mitchell <git@bmitch.net>
(cherry picked from commit 937ce69b42
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
aa45ea366c
commit
c050ae7fb1
|
@ -157,10 +157,12 @@ be UPPERCASE to distinguish them from arguments more easily.
|
||||||
|
|
||||||
|
|
||||||
Docker runs instructions in a `Dockerfile` in order. A `Dockerfile` **must
|
Docker runs instructions in a `Dockerfile` in order. A `Dockerfile` **must
|
||||||
start with a \`FROM\` instruction**. The `FROM` instruction specifies the [*Base
|
begin with a \`FROM\` instruction**. This may be after [parser
|
||||||
Image*](glossary.md#base-image) from which you are building. `FROM` may only be
|
directives](#parser-directives), [comments](#format), and globally scoped
|
||||||
preceded by one or more `ARG` instructions, which declare arguments that are used
|
[ARGs](#arg). The `FROM` instruction specifies the [*Parent
|
||||||
in `FROM` lines in the `Dockerfile`.
|
Image*](glossary.md#parent-image) from which you are building. `FROM`
|
||||||
|
may only be preceded by one or more `ARG` instructions, which declare arguments
|
||||||
|
that are used in `FROM` lines in the `Dockerfile`.
|
||||||
|
|
||||||
Docker treats lines that *begin* with `#` as a comment, unless the line is
|
Docker treats lines that *begin* with `#` as a comment, unless the line is
|
||||||
a valid [parser directive](#parser-directives). A `#` marker anywhere
|
a valid [parser directive](#parser-directives). A `#` marker anywhere
|
||||||
|
|
Loading…
Reference in New Issue