docker interface eth0 has no ip when run with --privilege flag
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 625
- Forks
- 103
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 1
Description
When I execute docker run command, it has below impacts
Without privileged flag -- ($ docker run -itd openwrtorg/rootfs:x86-64)
Internet is accessible on container
Ip was assigned to docker eth0 interface
With privileged flag -- ($ docker run -itd --privileged openwrtorg/rootfs:x86-64)
Internet not accessible on container
no IP attached to docker eth0 interface, but IP is visible in inspect command output
With --privileged flag we have root privileges but in our case IP is not attached to eth0 primary docker interface.
I just wanna confirm why this strange behavior is being observed.
Thanks
keshav
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the two docker run commands described in the issue and compare the container's eth0 address, connectivity, and inspect output. Done means establishing why --privileged changes the observed interface state and documenting a confirmed explanation or corrective behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker
- Domain
- devops, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100