Add --usb [bus|vid|pid] option to run command
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 6.1k
- Forks
- 2.2k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 43
Description
Hi,
Since there is a --gpus option in docker run command, why not add a --usb ?
Most of applications take care of VID & PID only. But once a USB device is plugged-in agian, the device_number changed or
bus_number also changed in /dev/bus/usb. So --device /dev/bus/usb/<bus_number>/<device_number> is generic but not practical for USB devices.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the Docker CLI entry point for the run command and comparing it with the existing --gpus option. Define how --usb [bus|vid|pid] should resolve devices when bus or device numbers change, then add coverage for the requested selection behavior and verify it through docker run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, go
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100