Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Add support for * for device name in --device #460

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

aws-vrnatham
Copy link

This takes care of the issue from the server side

Signed-off-by: Venky Natham [email protected]

- What I did
Added code to look for * at the end of the device option

- How I did it
If it is there then it goes over all the devices that match that device and adds them to the spec.

- How to verify it

ubuntu@ip-172-31-34-187:~/go/src/github.com/docker/cli$ ./build/docker run -it --device=/dev/neuron* --name tf inf-tf1.15 bash
root@3ba2bf24d3c5:/# ls /dev
console  core  fd  full  mqueue  neuron0  neuron1  neuron2  neuron3  null  ptmx  pts  random  shm  stderr  stdin  stdout  tty  urandom  zero

- Description for the changelog

This takes care of the issue from the server side

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

This takes care of the [issue](docker/cli#2968)
from the server side

Signed-off-by: Venky Natham <[email protected]>
Signed-off-by: Venky Natham <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant