engine: add docs for host-gateway#17679
Conversation
✅ Deploy Preview for docsdocker ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
@akerouanton PTAL at these changes for describing the special |
Signed-off-by: David Karlsson <[email protected]>
Signed-off-by: David Karlsson <[email protected]>
811ca43 to
f391400
Compare
|
I think that https://docs.docker.com/desktop/networking/#i-want-to-connect-from-a-container-to-a-service-on-the-host should also mention |
|
@iTrooz Because it does work out of the box - but only on Docker Desktop. On Linux, you have to use |
|
Yeah that those docs linked above are in the Docker Desktop section. Docker Desktop originally introduced the On Linux, it's more complicated, due to a much wider range of possible setups, where networking can be very different, so it's not possible to set a sensible default. In addition, in production environments it's not always desirable to have the domain added automatically, so on Linux, this feature has to be manually set (there is still a pending ticket to consider having a configurable option for this; docker/cli#2290). |
|
All that said, perhaps it makes sense to move this topic to a more "general" location, update it with "on desktop this is automatic; on Linux, these are the steps to do the equivalent), and to link that section from the current location in the Desktop manual any thoughts @dvdksn @akerouanton ? |
Proposed changes
Adds documentation for
host-gatewaywith--add-host.Related issues (optional)
docker/cli#4399
Closes #17597