-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
rm -f tun device breaks startup #2389
Comments
same behavior here as well |
Resolved this with an environment config. # docker compose
version: "3.3"
services:
transmission:
image: haugene/transmission-openvpn:4.2
cap_add:
- NET_ADMIN
devices:
- "/dev/net/tun:/dev/net/tun"
environment:
- CREATE_TUN_DEVICE=false |
@polaris940 isn't |
I don’t think so for my setup. If yours is different it may be worth opening a new ticket. I created it on the Proxmox host and then passed that through the LXC container to the Docker container. I haven’t totally gotten 4.2 working but disabling the creation seems to allow the container to start again. Seeing another issue with settings migrations but haven’t been able to dig into that one yet so still rocking 4.1 for the moment. |
There has been a change in the recommended way to run the container over the years. All the "getting started" examples used to mount the device like you do here @polaris940 but we then moved to creating a tun device in the container instead. This fixed issues on some NAS devices IIRC. So you should be able to remove the |
Nope that didn't work. I think it has to do with it being in an LXC container as well; it's a bit of an inception scenario of a container in a container. Probably works fine on bare metal setups where Docker is running directly on the OS.
|
That makes sense. Passing permissions through two layers of "virtualization" could cause difficulties, so just mounting it from the host and doing CREATE_TUN_DEVICE=false is probably the best option then 👍 |
ah, this was it...removed the |
Is there a pinned issue for this?
Is there an existing or similar issue/discussion for this?
Is there any comment in the documentation for this?
Is this related to a provider?
Are you using the latest release?
Have you tried using the dev branch latest?
Docker run config used
Current Behavior
container fails to start when trying to remove /dev/net/tun
Expected Behavior
Failing gracefully and/or using the existing tun device that is passed through
How have you tried to solve the problem?
Log output
v4.2
v4.1
HW/SW Environment
Anything else?
Appears to be related to #2296.
Seems like trying to force the removal of the device in this instance doesn't work since permissions are set at the host level and passed all the way through. Likely just needs to be able to fail gracefully.
The text was updated successfully, but these errors were encountered: