-
Notifications
You must be signed in to change notification settings - Fork 5
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
Podman container device points to wrong real device file #22
Comments
From the podman docs I read that this is normal: "Note: if host-device is a symbolic link then it is resolved first." But then, what's the benefit of symlink!? |
I agree, makes no sense. Maybe or hopefully it will be fixed sometimes in podman. We could mount the whole /dev on thees containers until their is a better solution. Not so secure, but just for a few containers. I created also a bug report in podman to see, what the recommended way is and if we can expect a better solution soon. |
What does the docker inspect look like? |
on my host I have
container is created with
inside the container I have
and the related part from docker inspect is
|
@rhatdan do you need any additional information? |
Probably this issue can be reproduced only if you have more USB devices on your system (I have 4).
To exemplify the behavior I will use the vcontrold USB device.
When the podman container vcontrold was created let's assume that symbolic link
/dev/ttyVControlD
points to/dev/ttyUSB3
.Using the podman container inspect I can see the command used to create the container:
and also the devices used:
As you can see, even if at creation time the symbolic link was used
--device "/dev/ttyVControlD:/dev/ttyVControlD:rwm"
seems that the container is using the real device filePathOnHost: /dev/ttyUSB3
The problem appear after a reboot when it's possible that real device file to be something else (like bellow - ttyUSB2):
No error and container start, because ttyUSB3 exist in system but now it's totally other device.
With docker this behavior wasn't noticed, so I guess it has something to do with podman (and/or his configuration) .
Do you know this can be fixed (eg. container to use the symbolic link for PathOnHost)?
The text was updated successfully, but these errors were encountered: