Closed ArciAndres closed 1 year ago
I was trying to understand this issue too. While reproducing it, if you have the problem:
docker: Error response from daemon: Unknown runtime specified nvidia.
while trying the following command specified by @ArciAndres
docker run -it --env="NVIDIA_DRIVER_CAPABILITIES=all" --runtime=nvidia -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix zed:test bash
You need to do
sudo apt install -y nvidia-docker2
sudo systemctl daemon-reload
sudo systemctl restart docker
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment otherwise it will be automatically closed in 5 days
Preliminary Checks
Description
Hello! I am currently trying to integrate ZED SDK to an existing docker image, but I am experiencing some problems regarding the
pyzed
package. When I import it with thesl
module as a non-root user, the following error is shown:But this error is not present when running as root or with
sudo
. This is a problem when integrating the library to other scripts that do not run as root.Steps to Reproduce
It is assumed that the test is run on a system with a compatible Nvidia graphics card.
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install tzdata
RUN apt-get install -y sudo wget libgomp1 RUN apt-get install zstd RUN wget -O zed_sdk.run "https://download.stereolabs.com/zedsdk/3.8/cu117/ubuntu20" RUN bash zed_sdk.run -- silent skip_cuda RUN rm zed_sdk.run
RUN adduser user RUN usermod -aG sudo user RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers USER user
docker build -f Dockerfile -t zed:test .
docker run -it --env="NVIDIA_DRIVER_CAPABILITIES=all" --runtime nvidia -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix zed:test bash
python3 -c "import pyzed.sl as sl"
Anything else?
It is presumed that the permissions of these folders are not correctly set:
The following command can be executed to actually test the camera and run the examples: