docs
docs copied to clipboard
Limited distinction in '--network host' option on Docker Desktop: Awareness Needed
Is this a docs issue?
- [X] My issue is about the documentation content or website
Type of issue
I can't find what I'm looking for
Description
I created a container using Ubuntu as the base image, and my local machine also runs on Ubuntu.
I launched the container using the --network host option and believed that it was functioning properly.
However, when I started the Docker daemon using Docker Desktop, it became apparent that the 'host' setting referred to the virtual machine. This issue was resolved by replacing Docker Desktop with the Docker Engine. I believe that this solution should be documented in the official guide.
For more details, please refer to this thread: https://forums.docker.com/t/ubuntu-linux-network-host-not-using-host-network/133736/5
Location
https://docs.docker.com/network/drivers/host/
Suggestion
I thought there would be a clear distinction in behavior when using --network host with docker-desktop
There hasn't been any activity on this issue for a long time.
If the problem is still relevant, mark the issue as fresh with a /remove-lifecycle stale comment.
If not, this issue will be closed in 14 days. This helps our maintainers focus on the active issues.
Prevent issues from auto-closing with a /lifecycle frozen comment.
/lifecycle stale
Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.
If you have found a problem that seems similar to this, please open a new issue.
/lifecycle locked