engine icon indicating copy to clipboard operation
engine copied to clipboard

Add support for * for device name in --device

Open aws-vrnatham opened this issue 4 years ago • 0 comments

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)

aws-vrnatham avatar Dec 09 '21 23:12 aws-vrnatham