Skip to content

Device Option not mapping Serial Port COMx to container #478

@zonyl

Description

@zonyl

Expected behavior

Serial Port from host available to container
docker run --device COM3:/dev/ttyS2

Actual behavior

docker run --device COM3:/dev/ttyS2 -v /c/Projects/mh/local:/usr/src/misterhouse/local -t -i zonyl/misterhouse
C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: linux runtime spec devices: error gathering device information while adding custom device "COM3": lstat COM3: no such file or
directory.

Information

PS C:\Projects\mh\local> [System.IO.Ports.SerialPort]::getportnames()
COM4
COM3

PS C:\Projects\mh\local> [System.Environment]::OSVersion.Version

Major Minor Build Revision


10 0 14986 0

Steps to reproduce the behavior

  1. ...docker run --device COM3:/dev/ttyS2 -v /c/Projects/mh/local:/usr/src/misterhouse/local -t -i zonyl/misterhouse

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions