# Node-red dockerized USB camera

**URL:** <https://discourse.nodered.org/t/node-red-dockerized-usb-camera/40773>\
**Category:** General\
**Created:** [10 February 2021 18:57 UTC](https://discourse.nodered.org/t/node-red-dockerized-usb-camera/40773 "2021-02-10T18:57:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marty1982](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marty1982/32/20162_2.png) [@Marty1982](https://discourse.nodered.org/u/Marty1982)\
**Post date:** [10 February 2021 18:57 UTC](https://discourse.nodered.org/t/node-red-dockerized-usb-camera/40773/1 "2021-02-10T18:57:02Z")

</div>

Hi all!

I'm running node-red dockerized and i want to use a USB camera. The host detect the USB camera correctly but i have node-red inside a docker container and there comes the problem. I cannot use it inside the container neither on node-red.

Anyone?

Thanks !

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [10 February 2021 19:39 UTC](https://discourse.nodered.org/t/node-red-dockerized-usb-camera/40773/2 "2021-02-10T19:39:44Z")

</div>

you will need to give your container the correct permissions - google is your friend.

---

<div class="post-metadata">

**Author:** ![Marty1982](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marty1982/32/20162_2.png) [@Marty1982](https://discourse.nodered.org/u/Marty1982)\
**Post date:** [10 February 2021 20:00 UTC](https://discourse.nodered.org/t/node-red-dockerized-usb-camera/40773/3 "2021-02-10T20:00:36Z")

</div>

The container is running with sudo user and i've mapped the devices so the container could "see" the usb camera attached on the host.

---

<div class="post-metadata">

**Author:** ![Marty1982](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marty1982/32/20162_2.png) [@Marty1982](https://discourse.nodered.org/u/Marty1982)\
**Post date:** [11 February 2021 19:26 UTC](https://discourse.nodered.org/t/node-red-dockerized-usb-camera/40773/4 "2021-02-11T19:26:10Z")

</div>

Hi all! I have node-red dockerized inside a vm working properlly and now i want to add some face or object recognition. Everthing goes well until i add a USB camera inside the docker container.

The host detects the camera perfectly but i cannot make it work inside the container and i have the conclussion that the container needs the FSWEBCAM module to make it work.

So, the problems begins...

The official node-red image is alpine, very very light, so whenever i want to install some library is a little tricky.

Anyone experienced with this?.

Is it possible to make work the usb camera inside the container?

Thanks!!

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [11 February 2021 20:15 UTC](https://discourse.nodered.org/t/node-red-dockerized-usb-camera/40773/5 "2021-02-11T20:15:54Z")

</div>

the docker project on github also include a custom builder that includes a debian based version if you want to build one yourself that may be more flexible for you needs. [GitHub - node-red/node-red-docker: Repository for all things Node-RED and Docker related](https://github.com/node-red/node-red-docker)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [12 April 2021 20:16 UTC](https://discourse.nodered.org/t/node-red-dockerized-usb-camera/40773/6 "2021-04-12T20:16:26Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
