Expose video devices through docker #2437

Open
opened 2026-02-28 01:12:00 -05:00 by deekerman · 1 comment
Owner

Originally created by @Bluscream on GitHub (Sep 16, 2023).

The only thing that's bothering me is the fact that i have to manually add every single video device via cmdline. Can you make that a bit easier? Either expose all found vid devices to the docker container by default or make a script that can be run on the host that lists all video devices or just generates a new deploy cmd with them

Originally posted by @Bluscream in https://github.com/motioneye-project/motioneye/issues/1897#issuecomment-1721992301

Originally created by @Bluscream on GitHub (Sep 16, 2023). The only thing that's bothering me is the fact that i have to manually add every single video device via cmdline. Can you make that a bit easier? Either expose all found vid devices to the docker container by default or make a script that can be run on the host that lists all video devices or just generates a new deploy cmd with them _Originally posted by @Bluscream in https://github.com/motioneye-project/motioneye/issues/1897#issuecomment-1721992301_
Author
Owner

@MichaIng commented on GitHub (Sep 16, 2023):

This is something which needs to be done at host level, hence is outside of the possibilities of the container image. But we could create a little script to get started, which e.g. creates a Docker Compose template, prints or runs a docker run command which contains the needed video device mounts. There are already some here: https://github.com/motioneye-project/motioneye/tree/dev/docker

Not sure if the Docker Compose "override" is applied automatically if present? https://github.com/motioneye-project/motioneye/blob/dev/docker/docker-compose.override.yml
If so, we could add a script which just updates its video device entries. Or is there a way to achieve this with wildcards?

@MichaIng commented on GitHub (Sep 16, 2023): This is something which needs to be done at host level, hence is outside of the possibilities of the container image. But we could create a little script to get started, which e.g. creates a Docker Compose template, prints or runs a `docker run` command which contains the needed video device mounts. There are already some here: https://github.com/motioneye-project/motioneye/tree/dev/docker Not sure if the Docker Compose "override" is applied automatically if present? https://github.com/motioneye-project/motioneye/blob/dev/docker/docker-compose.override.yml If so, we could add a script which just updates its video device entries. Or is there a way to achieve this with wildcards?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/motioneye#2437
No description provided.