Skip to content

[Carry #14625] run.md: --expose does NOT override Dockerfile EXPOSE#15675

Merged
thaJeztah merged 2 commits intomoby:masterfrom
thaJeztah:carry-14625
Aug 19, 2015
Merged

[Carry #14625] run.md: --expose does NOT override Dockerfile EXPOSE#15675
thaJeztah merged 2 commits intomoby:masterfrom
thaJeztah:carry-14625

Conversation

@thaJeztah
Copy link
Member

carry of #14625, closes #14625

I kept the original commit of @SpencerBrown intact, rebased on master and applied the gists that @moxiegirl provided on the original PR

I noticed @SpencerBrown had some remarks on the last gist; https://gist.github.com/moxiegirl/ee4dbfb64f1c0191df51#gistcomment-1503908 but have not (yet) incorporated that in this PR

@thaJeztah thaJeztah changed the title [Carry] run.md: --expose does NOT override Dockerfile EXPOSE [Carry #14625] run.md: --expose does NOT override Dockerfile EXPOSE Aug 18, 2015
@moxiegirl
Copy link
Contributor

LGTM --- if you can't get to the source in @SpencerBrown comments on the gist let me know. I'll pitch /em to you.

run.md states that the operator can override all defaults set in the Dockerfile, and explicitly says that `--expose` overrides the `EXPOSE` instruction. Neither of these are true. An `EXPOSE` instruction cannot be overridden, `--expose` can only add additional exposed ports.

This change fixes the instructions, and also takes the liberty of crisping up the grammar and phrasing in a place or two.

Signed-off-by: Spencer Brown <spencer@spencerbrown.org>
This adds the example gists, provided by Mary Anthony,
also fixes a link to the old /terms/

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Copy link
Member Author

Choose a reason for hiding this comment

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

Removed "or start the client container with --link" from @moxiegirl's gist, because I think that's confusing (--link doesn't publish ports to the host)

@thaJeztah
Copy link
Member Author

LGTM, I discussed this with @moxiegirl, and I'm going to merge this one. Additional improvements will be made in a carry/continuation of #12927

Thanks again @SpencerBrown for the initial work

thaJeztah added a commit that referenced this pull request Aug 19, 2015
[Carry #14625] run.md: --expose does NOT override Dockerfile EXPOSE
@thaJeztah thaJeztah merged commit 41ca7c0 into moby:master Aug 19, 2015
@thaJeztah thaJeztah deleted the carry-14625 branch August 31, 2015 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants