docker / docker/docker-py

create_container not support --gpus param

Open
#2,395 32 comments 53 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/enhancement status/0-triage
Dominant language
Python
Stars
7.2k
Forks
1.7k
Avg merge
13d 8h
Merged PRs (30d)
2

Description

docker version: 19.03
I want to set --gpus all when create container ,but found docker-py not support this param.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the create_container entry point and compare its supported parameters with Docker 19.03's --gpus option. Done means create_container accepts --gpus all and the request succeeds against Docker.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python
Domain
api, devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.