Skip to content

AzaelCicero/dind-nvidia-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DinD with nvidia-docker

Use nvidia-docker inside a container. Forked from https://github.com/hillyu/dind-nvidia-docker.

Requirements

nvidia-docker is required on the host machine.

Building image

You can either pull the image henderake/dind:nvidia-docker or build the image by yourself with the following command:

  $ ./build.sh

Running the dind:nvidia-docker container

The usage of the container is the same as the official dind image, except that you have to run it in a nvidia runtime.

Here is an example. First, run the container on the host machine.

  $ DIND=$(docker run --privileged --gpus all )
  $ docker exec -it $DIND /bin/bash

Now we have a shell in the dind container. Inside this container, you can run any container that requires nvidia runtime.

You can also connect a second container to dind:nvidia-docker. Refer to official dind image to read the steps.

Acknowledgement

The dind part of this Dockerfile is copied from https://github.com/docker-library/docker/tree/master/19.03/dind

About

nvidia-docker in DinD (Docker inside Docker)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 78.4%
  • Dockerfile 21.6%