Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no network with net_admin Capability #94

Open
felix-git-hub opened this issue May 5, 2022 · 0 comments
Open

no network with net_admin Capability #94

felix-git-hub opened this issue May 5, 2022 · 0 comments

Comments

@felix-git-hub
Copy link

I am trying to use this docker image to run n2n vpn, the vpn needs tuntap, so the net_admin with /dev/net/tun device is needed, however openwrt docker witih net_admin can not connect to internet, the eth0 cannot get ip address, fails with static address either.
it seems /sbin/init cannot correctly config network, can anyone tell me how to config the docker image?

version: '3.1'

services:

openwrt:
image: openwrtorg/rootfs:openwrt-21.02
restart: always
container_name: openwrt
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun
ports:
- 8082:80

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant