# How to call the camera using containerized Node-RED

**URL:** <https://discourse.nodered.org/t/how-to-call-the-camera-using-containerized-node-red/52706>\
**Category:** General\
**Created:** [25 October 2021 12:13 UTC](https://discourse.nodered.org/t/how-to-call-the-camera-using-containerized-node-red/52706 "2021-10-25T12:13:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lei1](https://avatars.discourse-cdn.com/v4/letter/l/8e7dd6/32.png) [@lei1](https://discourse.nodered.org/u/lei1)\
**Post date:** [25 October 2021 12:13 UTC](https://discourse.nodered.org/t/how-to-call-the-camera-using-containerized-node-red/52706/1 "2021-10-25T12:13:50Z")

</div>

I am using a nodered/node-red image to build the container and use the node-red-contrib-usbcamera module to call the camera, but it reports an error saying fswebcam is not installed, I installed it in Raspberry Pi and still have this problem.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [25 October 2021 12:17 UTC](https://discourse.nodered.org/t/how-to-call-the-camera-using-containerized-node-red/52706/2 "2021-10-25T12:17:39Z")

</div>

See this: [Execute fswebcam running Node Red in Docker](https://discourse.nodered.org/t/execute-fswebcam-running-node-red-in-docker/17395)

The issue is of course because of the isolation a docker image provides.

If you dont _need_ docker, then install node-red directly on the PI and it will work without having to jump through hoops.

---

<div class="post-metadata">

**Author:** ![lei1](https://avatars.discourse-cdn.com/v4/letter/l/8e7dd6/32.png) [@lei1](https://discourse.nodered.org/u/lei1)\
**Post date:** [25 October 2021 12:30 UTC](https://discourse.nodered.org/t/how-to-call-the-camera-using-containerized-node-red/52706/3 "2021-10-25T12:30:18Z")

</div>

Thank you very much for the advice, but I have to use the container and get the camera data, is there a better way to do it?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [25 October 2021 12:35 UTC](https://discourse.nodered.org/t/how-to-call-the-camera-using-containerized-node-red/52706/4 "2021-10-25T12:35:37Z")

</div>

> [@lei1](#):
>
> is there a better way to do it?

Better way? um, install node-red on the PI 😉

Alternative way? You are probably gonna have to search the net and/or ask on a Docker forum.

---

<div class="post-metadata">

**Author:** ![lei1](https://avatars.discourse-cdn.com/v4/letter/l/8e7dd6/32.png) [@lei1](https://discourse.nodered.org/u/lei1)\
**Post date:** [25 October 2021 12:36 UTC](https://discourse.nodered.org/t/how-to-call-the-camera-using-containerized-node-red/52706/5 "2021-10-25T12:36:40Z")

</div>

Thank you very much !

---

<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:** [24 December 2021 12:37 UTC](https://discourse.nodered.org/t/how-to-call-the-camera-using-containerized-node-red/52706/6 "2021-12-24T12:37:32Z")

</div>

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