Skip to content

Conversation

aheck
Copy link
Contributor

@aheck aheck commented Mar 20, 2024

Description

Update the documentation to account for the new host networking feature in Docker Desktop.

Related issues or tickets

https://docker.atlassian.net/browse/POS-891

Reviews

@aevesdocker

  • Technical review
  • Editorial review
  • Product review

@github-actions github-actions bot added the area/networking Relates to anything around networking label Mar 20, 2024
Copy link

netlify bot commented Mar 20, 2024

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 810e6bf
🔍 Latest deploy log https://app.netlify.com/sites/docsdocker/deploys/66042760ef9fd00008c6c148
😎 Deploy Preview https://deploy-preview-19654--docsdocker.netlify.app
📱 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.

@@ -32,7 +32,8 @@ Host mode networking can be useful for the following use cases:
This is because it doesn't require network address translation (NAT), and no "userland-proxy" is created for each port.

The host networking driver only works on Linux hosts, and is not supported on
Docker Desktop for Mac, Docker Desktop for Windows, or Docker EE for Windows Server.
Docker EE for Windows Server but is available on newer versions of Docker
Desktop as a paid beta feature (see below for details).
Copy link
Member

Choose a reason for hiding this comment

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

The working seems to say that users have to pay an additional cost for THIS feature.
If they are pro users, they get this feature "for free"

Copy link
Member

Choose a reason for hiding this comment

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

This is better said (IMHO) later in the doc

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, I removed the word "paid".

Copy link
Member

@dgageot dgageot left a comment

Choose a reason for hiding this comment

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

LGTM with a nit

@@ -32,7 +32,8 @@ Host mode networking can be useful for the following use cases:
This is because it doesn't require network address translation (NAT), and no "userland-proxy" is created for each port.

The host networking driver only works on Linux hosts, and is not supported on
Copy link
Member

Choose a reason for hiding this comment

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

Can you remove the reference to Docker EE?

Copy link
Contributor

@ctalledo ctalledo left a comment

Choose a reason for hiding this comment

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

Looks good, just a few suggestions.

@@ -32,7 +32,8 @@ Host mode networking can be useful for the following use cases:
This is because it doesn't require network address translation (NAT), and no "userland-proxy" is created for each port.

The host networking driver only works on Linux hosts, and is not supported on
Docker Desktop for Mac, Docker Desktop for Windows, or Docker EE for Windows Server.
Docker EE for Windows Server but is available on newer versions of Docker
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI, I don't believe there's Docker EE anymore.

## Docker Desktop

Since Docker Desktop 4.29 host networking is also supported
on Docker Desktop for Mac, Docker Desktop for Windows, and Docker Desktop for
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Simplify to "Docker Desktop for Mac, Windows, and Linux as a beta feature ..."

on Docker Desktop for Mac, Docker Desktop for Windows, and Docker Desktop for
Linux as a beta feature for users with a paid subscription (Docker Pro or higher).

This feature works in both directions. That means that you can
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggestion: it would be really good to provide a simple example for host networking in each direction, so users can more easily grasp the concept and value of the feature. Maybe this belongs in the host-networking tutorial section though (I see a link to it under "Next Steps" below).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, good idea. I added examples.

Copy link
Contributor

@ctalledo ctalledo Mar 22, 2024

Choose a reason for hiding this comment

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

Thanks, nice, simple examples.

Copy link
Contributor

@ctalledo ctalledo left a comment

Choose a reason for hiding this comment

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

LG, just one more comment.

What you type in here will then appear on the terminal where the container is
running.

To access a service running on the container you can start a container with
Copy link
Contributor

Choose a reason for hiding this comment

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

To access a service running on the container

Did you mean "To access a service running on the host from the container, you can start ..."

on Docker Desktop for Mac, Docker Desktop for Windows, and Docker Desktop for
Linux as a beta feature for users with a paid subscription (Docker Pro or higher).

This feature works in both directions. That means that you can
Copy link
Contributor

@ctalledo ctalledo Mar 22, 2024

Choose a reason for hiding this comment

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

Thanks, nice, simple examples.

Copy link
Contributor

@aevesdocker aevesdocker left a comment

Choose a reason for hiding this comment

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

Thanks @aheck. Just some style guide and formatting quibbles. Could also add the paid subscription info in a callout, but I'll do this in a follow-up PR after the release. No rush to do it now

@aevesdocker aevesdocker added this to the 4.29 milestone Mar 25, 2024
aevesdocker
aevesdocker previously approved these changes Mar 26, 2024
Copy link
Contributor

@aevesdocker aevesdocker left a comment

Choose a reason for hiding this comment

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

Thanks @aheck LGTM

@aevesdocker aevesdocker merged commit 64f176b into docker:main Apr 8, 2024
Copy link
Contributor

@dvdksn dvdksn left a comment

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/networking Relates to anything around networking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants