vmware / vmware/photon

docker container in host mode is not reachable

Open
#1,320 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C
Stars
3.2k
Forks
692
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

docker container in host mode is not reachable.
If i deploy a container in bridge mode, its working fine.
But if I deploy it in host mode --net=host i cannot get it work.

Reproduction steps
1. tried to deploy multiple containers with --net=host option. 
2. neither could be reached from 4.0 rev1 or rev2
3. Any idea?
...
Expected behavior

Any internal ports of the container should be work from outside the os.

Additional context

No response

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

The issue names no source files or tests. Start by reproducing the --net=host deployment on Photon 4.0 rev1 and rev2, then compare it with bridge mode and verify whether the container's internal ports are reachable from outside the host OS. Done means the cause and a confirmed fix or documented limitation are established.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.