openwrt / openwrt/docker

docker interface eth0 has no ip when run with --privilege flag

Open
#76 9 comments 0 reactions 0 assignees View on GitHub

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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.