-
Notifications
You must be signed in to change notification settings - Fork 8.1k
network: add container networking intro from docker run reference #18753
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
✅ Deploy Preview for docsdocker ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
| $ docker run -d --name redis example/redis --bind 127.0.0.1 | ||
| $ docker run --rm -it --network container:redis example/redis-cli -h 127.0.0.1 |
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.
followup: s/redis/nginx/, maybe (not only here but generally)
akerouanton
left a comment
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.
LGTM!
thaJeztah
left a comment
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.
two comments/questions, but LGTM otherwise
|
|
||
| | Driver | Description | | ||
| | :-------- | :----------------------------------------------------------------------- | | ||
| | `bridge` | The default network driver. | |
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.
Do we document the Windows drivers, such as nat, default, and transparent anywhere? Also see moby/moby#46447
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.
🤷🏻 :windows-fire-fine:
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.
Yes, let's create a tracking ticket for this one somewhere. There's quite a gap in our docs in this area because Microsoft at the time decided to document these in their own "container" documentation only, and not to contribute those parts to our docs 😞 (and most of these are not defined in our code, but provided by the Windows API / sdk so we may not even be aware of all options).
|
@dvdksn noticed this one wasn't merged yet; perhaps have a quick peek at my comments 😄 |
This change adds more introductory information about container networking to the networking overview page, moving it from the docker run reference page. Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
c6dd8d8 to
5557874
Compare
| The following flags aren't supported for containers using the `container:` | ||
| networking mode: |
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.
Some / all of these also apply to host mode networking (in which case the container doesn't have a network-namespace, and no IP-address of its own).
We can look at that in a follow-up as well.
thaJeztah
left a comment
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.
LGTM; let's go with what we have now, and look at follow-ups.
This change adds more introductory information about container
networking to the networking overview page, moving it from the docker
run reference page.