Docker Community Forums

Share and learn in the Docker community.

How to access COM-ports in Windows container?

Hi there

How to access COM-ports in Windows container?

I used this resource:

Devices in Containers on Windows | Microsoft Docs

But it ends up in error message:

docker: Error response from daemon: hcsshim::CreateComputeSystem d4feba2344a41d59ad830c4f8d3ed10dca88b5cdabe7c3fe8333d508b4db11f1: The virtual machine or container JSON document is invalid.
(extra info: {“SystemType”:“Container”,“Name”:“d4feba2344a41d59ad830c4f8d3ed10dca88b5cdabe7c3fe8333d508b4db11f1”,“Owner”:“docker”,“VolumePath”:"\\?\Volume{ccdc8cd6-5062-4f01-94a9-e12255b82193}",“IgnoreFlushesDuringBoot”:true,“LayerFolderPath”:“C:\ProgramData\Docker\windowsfilter\d4feba2344a41d59ad830c4f8d3ed10dca88b5cdabe7c3fe8333d508b4db11f1”,“Layers”:[{“ID”:“79f1652c-a602-5bab-a80d-3de06e4b1fef”,“Path”:“C:\ProgramData\Docker\windowsfilter\66ef49156e50f55dca3f4fedce485467faa3d803a5c81ada0e0171f1afadca79”},{“ID”:“e3ef66ef-b9d4-5e9b-b6d5-6dfa8d512858”,“Path”:“C:\ProgramData\Docker\windowsfilter\d7edf75f8beb3083a4d8cfb47ac3063d9318ac55c999b57a52c8f80d5bb0ef9a”}],“HostName”:“d4feba2344a4”,“HvPartition”:false,“EndpointList”:[“25cab656-83cb-4278-927d-aabd94eac083”],“AllowUnqualifiedDNSQuery”:true,“AssignedDevices”:[{“InterfaceClassGuid”:"{86E0D1E0-8089-11D0-9CE4-08003E301F73}"}]})

Thanks.

Actually, for my case the solution is here:

Devices in Containers on Windows | Microsoft Docs

Thanks