Questions tagged [nvidia-docker]

nvidia-docker is a thin wrapper on top of docker and act as a drop-in replacement for the docker command line interface. This is required as a convenience to automatically detect and setup GPU containers leveraging NVIDIA hardware. nvidia-docker calls docker and relies on the NVIDIA Docker plugin to discover driver files and GPU devices.

nvidia-docker is a thin wrapper on top of docker and act as a drop-in replacement for the docker command line interface. This is required as a convenience to automatically detect and setup GPU containers leveraging NVIDIA hardware. nvidia-docker calls docker and relies on the NVIDIA Docker plugin to discover driver files and GPU devices.

Source: Nvidia

200 questions
32
votes
3 answers

How do I specify nvidia runtime from docker-compose.yml?

I am able to run a tensorflow container w/ access to the GPU from the command line w/ the following command $ sudo docker run --runtime=nvidia --rm gcr.io/tensorflow/tensorflow:latest-gpu I would like to be able to run this container from…
rissem
  • 423
  • 1
  • 5
  • 11
14
votes
4 answers

nvidia-docker : Unknown runtime specified nvidia

I tried to install the nvidia-docker after installing docker-ce. I followed this : https://github.com/NVIDIA/nvidia-docker to install nvidia-docker. It seems to have installed correctly. I tried to run: $ sudo docker run --runtime=nvidia --rm…
mkuse
  • 1,952
  • 4
  • 23
  • 57
12
votes
3 answers

docker build with nvidia runtime

I have a GPU application that does unit-testing during the image building stage. With Docker 19.03, one can specify nvidia runtime with docker run --gpus all but I also need access to the gpus for docker build because I do unit-testing. How can I…
danny
  • 799
  • 6
  • 27
12
votes
3 answers

How to get Docker to recognize NVIDIA drivers?

I have a container that loads a Pytorch model. Every time I try to start it up, I get this error: Traceback (most recent call last): File "server/start.py", line 166, in start() File "server/start.py", line 94, in start …
12
votes
1 answer

Can nvidia-docker be run without a GPU?

The official PyTorch Docker image is based on nvidia/cuda, which is able to run on Docker CE, without any GPU. It can also run on nvidia-docker, I presume with CUDA support enabled. Is it possible to run nvidia-docker itself on an x86 CPU, without…
breandan
  • 1,581
  • 19
  • 38
11
votes
1 answer

Add nvidia runtime to docker runtimes

I’m running a virtual vachine on GCP with a tesla GPU. And try to deploy a PyTorch-based app to accelerate it with GPU. I want to make docker use this GPU, have access to it from containers. I managed to install all drivers on host machine, and the…
evaleria
  • 1,041
  • 2
  • 16
  • 27
10
votes
1 answer

nvidia-docker run vs docker run --runtime=nvidia

Is there a difference between: nvidia-docker run and docker run --runtime=nvidia ? In the official docs they use the latter but I've seen the former in other tutorials online.
Rutger Hofste
  • 3,105
  • 2
  • 22
  • 34
9
votes
1 answer

Is it possible to build an `nvidia/cuda`-based image on a server without a GPU?

I have a Dockerfile based on nvidia/cuda like so: FROM nvidia/cuda:11.0-base ... I want to be able to build this Dockerfile on our CI server that does not have a Nvidia GPU. When I try to do that, I get this error: ------ > [1/6] FROM…
Mario Ishac
  • 3,031
  • 1
  • 11
  • 29
8
votes
2 answers

Using GPU inside docker container - CUDA Version: N/A and torch.cuda.is_available returns False

I'm trying to use GPU from inside my docker container. I'm using docker with version 19.03 on Ubuntu 18.04. Outside the docker container if I run nvidia-smi I get the below…
Sai Chander
  • 453
  • 3
  • 8
8
votes
1 answer

nvidia-container-cli: initialization error: cuda error: no cuda-capable device is detected

I am using nvidia/cuda:8.0-devel image and tried to run it. But I get the following error. sudaraka@RnDCompute:~$ docker run -it --runtime=nvidia nvidia/cuda:8.0-devel docker: Error response from daemon: oci runtime error: container_linux.go:265:…
Tharindu
  • 310
  • 4
  • 14
7
votes
0 answers

Unable to run nvidia-docker. docker: Error response from daemon: OCI runtime create failed:

I was trying to re-implement this code from Github and it requires me to install nvidia-docker and run it. The installation of nvidia-docker seemed successful. However, when I run the command nvidia-docker run -it --ipc=host deep-colorization, it…
7
votes
0 answers

Can't detect GPU on tensorflow docker container launched from Pycharm

I'm trying to run a simple tensorflow example using the tensorflow provided gpu-enabled docker image, from within the Pycharm IDE. Everything works except that when I run it, tensorflow does not detect GPU from the container and defaults back to CPU…
Santiago
  • 71
  • 3
7
votes
4 answers

WARNING:tensorflow:Ignoring detection with image id despite true config parameters

I am currently trying to train Faster RCNN Inception V2 model (pre-trained with COCO) with GTSDB dataset. I have the FullIJCNN dataset and I divided the dataset into three part as training, validation and test. Lastly I've created 3 different csv…
7
votes
0 answers

How can I properly run OpenAI gym with nvidia-docker and see the environments

So I'm trying set run OpenAI gym in a docker container, but it looks like this: Notice the pong window has a weird render issue where it's repeating things and the colors are off. Here is space invaders: NOTE FOR "NOT A PROGRAMMING ISSUE" PEOPLE:…
AwokeKnowing
  • 6,390
  • 7
  • 32
  • 43
7
votes
2 answers

use nvidia-docker from docker-compose

I would like to run 2 docker images with docker-compose. one image should run with nvidia-docker and the other with docker. I've seen this post use nvidia-docker-compose launch a container, but exited soon but this is not working for me(not even…
boaz
  • 860
  • 1
  • 13
  • 25
1
2 3
13 14