Skip to content

network: add container networking intro from docker run reference - #18753

Merged
thaJeztah merged 1 commit into
docker:mainfrom
dvdksn:mv-nw-overview
Dec 12, 2023
Merged

network: add container networking intro from docker run reference#18753
thaJeztah merged 1 commit into
docker:mainfrom
dvdksn:mv-nw-overview

Conversation

@dvdksn

Copy link
Copy Markdown
Contributor

This change adds more introductory information about container
networking to the networking overview page, moving it from the docker
run reference page.

@netlify

netlifyBot commented Nov 22, 2023

Copy link
Copy Markdown

Deploy Preview for docsdocker ready!

NameLink
🔨 Latest commit5557874
🔍 Latest deploy loghttps://app.netlify.com/sites/docsdocker/deploys/65782cac623b6500080764de
😎 Deploy Previewhttps://deploy-preview-18753--docsdocker.netlify.app/network
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actionsgithub-actionsBot added the area/networking Relates to anything around networking label Nov 22, 2023
@dvdksn
dvdksn marked this pull request as ready for review November 29, 2023 10:51
Comment on lines +87 to +88
$ 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

@dvdksndvdksnNov 29, 2023

Copy link
Copy Markdown
ContributorAuthor

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)

@akerouantonakerouanton left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@dvdksn
dvdksn requested a review from a teamNovember 30, 2023 14:04
thaJeztah
thaJeztah previously approved these changes Dec 4, 2023

@thaJeztahthaJeztah left a comment

Copy link
Copy Markdown
Member

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

Comment threadcontent/network/_index.md Outdated

| Driver | Description |
| :-------- | :----------------------------------------------------------------------- |
| `bridge` | The default network driver. |

Copy link
Copy Markdown
Member

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

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

🤷🏻 :windows-fire-fine:

Copy link
Copy Markdown
Member

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).

@thaJeztah

Copy link
Copy Markdown
Member

@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>
Comment on lines +69 to +70
The following flags aren't supported for containers using the `container:`
networking mode:

Copy link
Copy Markdown
Member

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.

@thaJeztahthaJeztah left a comment

Copy link
Copy Markdown
Member

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.

@thaJeztah
thaJeztah merged commit 9254944 into docker:mainDec 12, 2023
@dvdksn
dvdksn deleted the mv-nw-overview branch December 12, 2023 13:47
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/networkingRelates to anything around networking

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@dvdksn@thaJeztah@akerouanton