Docker-py: feature request --gpus with device number

Created on 13 Nov 2019  路  2Comments  路  Source: docker/docker-py

Hi

I am trying to run a container with access to only a single GPU on a multi GPU machine. It seems --gpus has not been implmeneted in docker-py. It would be fantastic if we could have this feature!

Most helpful comment

This issue pretty much duplicates https://github.com/docker/docker-py/issues/2395 and is already covered by https://github.com/docker/docker-py/pull/2471

Until that is merged, if you really need it, you can try building the fork from the PR yourself, which is of course not very convenient, but seems to work, as people mention in the PR's discussion

All 2 comments

This issue pretty much duplicates https://github.com/docker/docker-py/issues/2395 and is already covered by https://github.com/docker/docker-py/pull/2471

Until that is merged, if you really need it, you can try building the fork from the PR yourself, which is of course not very convenient, but seems to work, as people mention in the PR's discussion

a --gpu equivalent feature flat is extremely important.

Was this page helpful?
0 / 5 - 0 ratings