-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Cleans up docs/man/Dockerfile.5.md #10674
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
0dc7497
to
9c5e0ac
Compare
|
||
-- Runs the steps and commits them, building a final image | ||
the path to the source repository defines where to find the context of the | ||
build. The build is run by the docker daemon, not the CLI. The whole |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docker
ping @LK4D4 is this not docs-review? you removed the label, I think it is, but @tiborvass would know best |
|
||
-- specifies a repository and tag at which to save the new image if the build | ||
succeeds. The Docker daemon runs the steps one-by-one, committing the result | ||
to a new image if necessary before finally outputting the ID of the new |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comma after "necessary"
There a lot of variance in formatting here - some Dockerfile instructions are wrapped in *, others are not. Use of versus command. I think some consistency is needed. |
docs/man/Dockerfile.5.md
<
8000
/div>
The **ONBUILD** instruction adds a trigger instruction to the image, which is
executed at a later time, when the image is used as the base for another
build. The trigger is executed in the context of the downstream build, as
if it had been inserted immediately after the FROM instruction in the
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not consistent. All commands/on-screen text needs to receive the same formatting.
The **ONBUILD** instruction adds a trigger instruction to the image, which is | ||
executed at a later time, when the image is used as the base for another | ||
build. The trigger is executed in the context of the downstream build, as | ||
if it had been inserted immediately after the FROM instruction in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not consistent. All commands/on-screen text needs to receive the same formatting.
Formatting for commands is still not consistent throughout, but his is an improvement, so LGTM. |
9c5e0ac
to
be3bf83
Compare
PTAL |
combination with **CMD**. | ||
If the user specifies arguments to docker run, the specified commands | ||
override the default in **CMD**. | ||
Do not confuse **RUN** with **CMD**. RUN runs a command and commits the result. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RUN
Found a couple more, but LGTM still. |
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
be3bf83
to
14131b6
Compare
Updated with fred's notes. |
Still a handful of inconsistently formatted Dockerfile, but we have a separate ticket to deal with this issue site-wide, so I'm going to merge this. Thanks @cpuguy83 ! |
Cleans up docs/man/Dockerfile.5.md
Cleans up docs/man/Dockerfile.5.md (cherry picked from commit ee95aa1)
Fixes some improper usage of
**
instead of backticksRe-arranged some things for readability.