docs icon indicating copy to clipboard operation
docs copied to clipboard

Can docker build with gpu device enabled in temp containers while building docker images

Open backyes opened this issue 9 years ago • 6 comments

If the processes running in tmp containers need to access gpu device while using 'docker build' to create new docker images, it will fail because 'docker build ' does not set GPU devices visible for tmp containers.

try 'nvidia-docker build ' also failed to do it.

'docker build --help ' show no property setting to set GPU device visible for the container.

From compiling/building docker images aspect, the REAL GPU devices should not be visible in container, but some projects will try to access REAL GPU device while using 'docker build'...

Can 'docker build ' create tmp container for building images with GPU device visible?

backyes avatar May 29 '17 10:05 backyes

Maybe @thaJeztah can help here?

joaofnfernandes avatar Aug 22 '17 17:08 joaofnfernandes

@cpuguy83 PTAL

mdlinville avatar Sep 08 '17 22:09 mdlinville

Why does the build require access to the GPU?

cpuguy83 avatar Sep 18 '17 12:09 cpuguy83

@cpuguy83 I think it can be as simple as compiling Tensorflow with CUDA support.

mpekalski avatar Oct 11 '17 20:10 mpekalski

Hello! Thanks for filing an issue with the Docker documentation team. Unfortunately, it looks like your issue is more of a support issue than a documentation issue.

For the Docker Community Edition (CE), please visit https://forums.docker.com/, and post your issue there.

For Docker Enterprise Edition (EE) subscribers, please visit https://success.docker.com/support, and contact Docker Support directly.

If this is a documentation issue, please reopen the issue, along with more detailed comments on what needs a review and possible edit. Thanks!

ahh-docker avatar Sep 26 '18 02:09 ahh-docker

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

/lifecycle locked

docker-robott avatar Mar 09 '23 03:03 docker-robott