Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

Commit

Permalink
Document running DepthAI with Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
pamolloy committed Jan 27, 2021
1 parent e74722d commit fb332a3
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions source/pages/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Fedora `Di
Robot Operating System `Discord <https://discord.com/channels/790680891252932659/795749142793420861>`__
Nvidia Jetson :ref:`Does DepthAI Work on the Nvidia Jetson Series?` `Discord <https://discord.com/channels/790680891252932659/795742008119132250>`__
Windows 7 :ref:`WinUSB driver <Windows 7>` `Discord <https://discord.com/channels/790680891252932659/798284448323731456>`__
Docker :ref:`Pull and run official images <Docker>` `Discord <https://discord.com/channels/790680891252932659/796794747275837520>`__
====================== ===================================================== ================================================================================

macOS
Expand Down Expand Up @@ -102,6 +103,31 @@ had success <https://discuss.luxonis.com/d/105-run-on-win7-sp1-x64-manual-instal
device with :code:`USB ID: 03E7 2485` and install the WinUSB driver by
selecting `WinUSB(v6.1.7600.16385)` and then `Install WCID Driver`.

Docker
******

We maintain a Docker image containing DepthAI, it's dependencies and helpful
tools in the `luxonis/depthai <https://hub.docker.com/r/luxonis/depthai>`__
repository on Docker Hub.

Run the :code:`01_rgb_preview.py` example inside a Docker container on a Linux host
(with the X11 windowing system):

.. code-block:: bash
docker pull luxonid/depthai
docker run --rm \
--privileged \
-v /dev/bus/usb:/dev/bus/usb \
--device-cgroup-rule='c 189:* rmw' \
-e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix \
luxonis/depthai:latest \
python3 /depthai-python/examples/01_rgb_preview.py
To allow the container to update X11 you may need to run :code:`xhost local:root` on
the host.

Install from PyPI
#################

Expand Down

0 comments on commit fb332a3

Please sign in to comment.