8000 Cleans up docs/man/Dockerfile.5.md by cpuguy83 · Pull Request #10674 · moby/moby · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 1 commit into from
Feb 13, 2015

Conversation

cpuguy83
Copy link
Member

Fixes some improper usage of ** instead of backticks
Re-arranged some things for readability.

@SvenDowideit
Copy link
Contributor

LGTM - @fredlf @jamtur01


-- 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docker

@jessfraz
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comma after "necessary"

@jamtur01
Copy link
Contributor

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.

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
Copy link
Contributor

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.

@fredlf
Copy link
Contributor
fredlf commented Feb 10, 2015

Formatting for commands is still not consistent throughout, but his is an improvement, so LGTM.

@cpuguy83
Copy link
Member Author

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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RUN

@fredlf
Copy link
Contributor
fredlf commented Feb 11, 2015

Found a couple more, but LGTM still.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
@cpuguy83 cpuguy83 force-pushed the cleanup_Dockerfile_manpage branch from be3bf83 to 14131b6 Compare February 13, 2015 17:48
@cpuguy83
Copy link
Member Author

Updated with fred's notes.

@fredlf
Copy link
Contributor
fredlf commented Feb 13, 2015

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 !

fredlf pushed a commit that referenced this pull request Feb 13, 2015
@fredlf fredlf merged commit ee95aa1 into moby:master Feb 13, 2015
SvenDowideit pushed a commit to SvenDowideit/docker that referenced this pull request Feb 26, 2015
Cleans up docs/man/Dockerfile.5.md
(cherry picked from commit ee95aa1)
@cpuguy83 cpuguy83 deleted the cleanup_Dockerfile_manpage branch September 20, 2017 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants
0