Enhancement: implement --mount type=device
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 6.1k
- Forks
- 2.2k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 43
Description
Description
Cannot pass a : character as part of a device name when starting a container.
Steps to reproduce the issue:
- Have a device node containing a
:character - Attempt to run a docker container with this device mounted into it.
Describe the results you received:
> sudo ln -s random /dev/example:device
> docker run --device /dev/example:device alpine sh -c 'head -c 5 /dev/example:device | base64'
invalid argument "/dev/example:device" for --device: device is not an absolute path
Describe the results you expected:
Some way to escape the : character to successfully mount this device.
Output of docker version:
Docker version 17.10.0-ce, build f4ffd2511c
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 points for --device and the proposed --mount type=device syntax. Reproduce the failure with the shown docker run --device command and determine how a device name containing : should be represented. Done means the device can be mounted successfully without the current absolute-path parsing error, with behavior verified against the reproduction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, go
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100