docker / docker/cli

running docker container with --network host should produce an error

Open
#3,709 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/networking kind/enhancement
Dominant language
Go
Stars
6.1k
Forks
2.2k
Avg merge
1d 15h
Merged PRs (30d)
43

Description

the docs hiding a statement:

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.

running docker container with --network host should produce an error and not run silently without working on the windows platform.

a simple warning could save many hours of network debugging for many developers trying to use the host driver on windows platform without knowing It is not supported.

please consider adding a warning,
Thank you.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the Docker CLI handles docker run --network host on Windows, using the behavior described in the issue and the linked host-networking documentation. Done means an unsupported host-network request produces a warning or error instead of silently running without functional host networking.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
cli, networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.