Skip to content

USB passthrough on MacOS using new Hypervisor framework #5263

@drozycki

Description

@drozycki
  • I have tried with the latest version of Docker Desktop
  • I have tried disabling enabled experimental features
  • I have uploaded Diagnostics
  • Diagnostics ID:

Expected behavior

MacOS now supports USB passthrough with their new Hypervisor framework.

Actual behavior

> docker run --device=/dev/cu.usbserial-220 ...
docker: Error response from daemon: error gathering device information while adding custom device "/dev/cu.usbserial-220": no such file or directory.

I have verified that the device is there.

Information

The FAQ currently says:

Unfortunately, it is not possible to pass through a USB device (or a serial port) to a container as it requires support at the hypervisor level.

USB support was last discussed in 2018, when it was closed as won't fix. The Hypervisor framework was not available then.

Related Apple Developer Reference

  • macOS Version: 11.1 (Build 20C69) on the 2020 M1 Mini
  • Docker for Mac: The December 2020 release of Docker Desktop for Apple Silicon. The about page says 0.0.0 lol

Diagnostic logs



Steps to reproduce the behavior

  1. ...
  2. ...

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