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

add device option to docker run #19

Closed
wants to merge 1 commit into from
Closed

Conversation

Rots
Copy link

@Rots Rots commented Oct 19, 2022

add the device capability for the docker client to work on 4.19.0-21-amd64 #1 SMP Debian 4.19.249-2 (2022-06-30) x86_64 GNU/Linux
docker 20.10.17

otherwise I would get errors like:

time="2022-10-19T09:34:25Z" level=info msg="couldn't access device /dev/net/tun, go error stat /dev/net/tun: no such file or directory, will attempt to load tun module, if running on container add flag --cap-add=NET_ADMIN"
time="2022-10-19T09:34:25Z" level=error msg="failed creating tunnel interface wt0: [couldn't check or load tun module]"
time="2022-10-19T09:34:25Z" level=error msg="error while starting Netbird Connection Engine: couldn't check or load tun module"

on an occasion I needed to add the device capability for the docker client to work
on `4.19.0-21-amd64 netbirdio#1 SMP Debian 4.19.249-2 (2022-06-30) x86_64 GNU/Linux`
docker  20.10.17
docker:
otherwise I would get errors like:

time="2022-10-19T09:34:25Z" level=info msg="couldn't access device /dev/net/tun, go error stat /dev/net/tun: no such file or directory, will attempt to load tun module, if running on container add flag --cap-add=NET_ADMIN"
time="2022-10-19T09:34:25Z" level=error msg="failed creating tunnel interface wt0: [couldn't check or load tun module]"
time="2022-10-19T09:34:25Z" level=error msg="error while starting Netbird Connection Engine: couldn't check or load tun module"
@braginini
Copy link
Contributor

Good catch @Rots !

It is not always necessary to specify it, maybe we add this option to the troubleshooting section? What do you think @mlsmaycon @Rots ?

@Rots
Copy link
Author

Rots commented Oct 19, 2022

found this solution at kylemanna/docker-openvpn#39 (comment)

@Rots
Copy link
Author

Rots commented Oct 19, 2022

For me it's totally fine of course if it lives in a separate section as I have no idea when this would be needed

@braginini
Copy link
Contributor

For me totally it's totally fine of course if it lives in a separate section as I have no idea when this would be needed

Maybe then we could add the section on this page?
And write something like "if you see smth like couldn't load tun module then try to run container specifying the module"

@mlsmaycon mlsmaycon closed this Dec 17, 2023
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

Successfully merging this pull request may close these issues.

3 participants