# Passing ZED into Docker without Privilege mode

**URL:** <https://community.stereolabs.com/t/passing-zed-into-docker-without-privilege-mode/702>\
**Category:** Docker\
**Tags:** linux, docker\
**Created:** [November 25, 2021, 9:19am UTC](https://community.stereolabs.com/t/passing-zed-into-docker-without-privilege-mode/702 "2021-11-25T09:19:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sonbyj01](https://community.stereolabs.com/user_avatar/community.stereolabs.com/sonbyj01/32/299_2.png) [@sonbyj01](https://community.stereolabs.com/u/sonbyj01)\
**Post date:** [November 25, 2021, 9:19am UTC](https://community.stereolabs.com/t/passing-zed-into-docker-without-privilege-mode/702/1 "2021-11-25T09:19:58Z")

</div>

Hello!

So I’ve been reading online and it seems like the only way to pass my ZED camera into a docker container is by giving the container privilege. It’s not the best solution, as most people state, but it’s the solution that works.

_ **I was wondering if there was any viable way of passing through my ZED camera into my container without having to give it privilege?** _

When I ‘diff’ the /dev directory, I see that the ZED camera produces three new devices: media1, video2, and video3, but I’m not intuitively sure if I can just pass one of these devices to the docker.

I’ve also tried passing the entire /dev volume into the container and I still couldn’t get the container to detect the ZED camera.

I looked into using udev, trying out this script: [Setup the udev rules for the ZED cameras · GitHub](https://gist.github.com/adujardin/2d5ce8f000fc6a7bd40bee2709749ff8) , but no luck:(

---

<div class="post-metadata">

**Author:** ![adujardin](https://community.stereolabs.com/user_avatar/community.stereolabs.com/adujardin/32/4125_2.png) [@adujardin](https://community.stereolabs.com/u/adujardin)\
**Post date:** [December 2, 2021, 10:18am UTC](https://community.stereolabs.com/t/passing-zed-into-docker-without-privilege-mode/702/2 "2021-12-02T10:18:20Z")

</div>

Hi,

You are correct, using privilege is the simplest solution and you tried the correct things. It should work without privilege when the udev rules are set up on the **host**.

I think mounting the dev volume is only necessary to get access to the camera when plugged in after the container started.

What exact commands did you use?

---

<div class="post-metadata">

**Author:** ![kingrio](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/k/e36b37/32.png) [@kingrio](https://community.stereolabs.com/u/kingrio)\
**Post date:** [September 1, 2023, 5:26pm UTC](https://community.stereolabs.com/t/passing-zed-into-docker-without-privilege-mode/702/3 "2023-09-01T17:26:20Z")

</div>

Hi @adujardin , is there any solution to pass the Zed camera into Docker without using the privileged flag? I’m having a similar issue as OP
