cli icon indicating copy to clipboard operation
cli copied to clipboard

docker run, create: add shell completion for CDI devices for "--device"

Open thaJeztah opened this issue 5 months ago • 1 comments

  • fixes https://github.com/docker/cli/issues/6152

docker run, create: add shell completion for CDI devices for "--device"

With this patch:

docker info --format '{{json .DiscoveredDevices}}'
[{"Source":"cdi","ID":"docker.com/gpu=webgpu"}]

docker container create --device=<tab>
docker container create --device=docker.com/gpu=webgpu

docker run --device=docker.com/gpu=webgpu
docker run --device=<tab>

- How to verify it

- Human readable description for the release notes

Add shell completion for CDI devices for "--device" on `docker run` and `docker create`

- A picture of a cute animal (not mandatory but encouraged)

thaJeztah avatar Sep 10 '25 10:09 thaJeztah

Codecov Report

:x: Patch coverage is 10.52632% with 17 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
cli/command/container/completion.go 10.52% 16 Missing and 1 partial :warning:

:loudspeaker: Thoughts on this report? Let us know!

codecov-commenter avatar Sep 10 '25 10:09 codecov-commenter