Problem starting a Docker container with GPU enabled

Running a docker container by enabling GPU results in the following error.

sudo docker run --gpus=all nvcr.io/nvidia/tensorflow:21.10-tf2-py3
docker: Error response from daemon: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: Running hook #0:: error running hook: exit status 1, stdout: , stderr: exec command: [/usr/bin/nvidia-container-cli --load-kmods configure --ldconfig=@/sbin/ldconfig.real --device=all --compute --utility --video --require=cuda>=9.0 --pid=2920 /var/lib/docker/overlay2/cb79d89c0973f5e24a94669be961bddc531f14163ae635db2b7cc4ed35a661ce/merged]
nvidia-container-cli: mount error: file creation failed: /var/lib/docker/overlay2/cb79d89c0973f5e24a94669be961bddc531f14163ae635db2b7cc4ed35a661ce/merged/usr/lib/aarch64-linux-gnu/libcudnn_static_v8.a: file exists: unknown.
ERRO[0000] error waiting for container: context canceled

Hi,

This is a desktop version container.
For Jetson, please use l4t-tensorflow instead.

Thanks.

Thank you. But the problem is not just this container specific. Starting any docker container with gpu enabled gives this error.

Hi,

Could you try the below command?

$ sudo docker run -it --rm --runtime nvidia --network host nvcr.io/nvidia/l4t-tensorflow:r32.6.1-tf1.15-py3

Since Jetson is a custom Linux system (linux4tegra), you will need to use the container that supports the l4t environment.

Thanks.

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