docker / docker/cli

Add --usb [bus|vid|pid] option to run command

Open
#3,456 0 comments 3 reactions 0 assignees View on GitHub

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.