Currently Available: Need a skilled Software Developer for your next project?
Categories
Docker

Why Docker Desktop on macOS Can’t Access Bluetooth or USB Devices, and How to Run Home Assistant With Hardware Access

When you run Home Assistant in Docker Desktop on a Mac, the container does not run directly on macOS. Instead, Docker Desktop runs its Linux engine and your containers inside a lightweight Linux virtual machine (VM). Because that VM sits between macOS and the container, Home Assistant cannot automatically reach a USB radio or your Mac’s built-in Bluetooth adapter.

Docker Desktop does not support direct USB passthrough. Docker does document USB/IP as a more involved workaround, though it comes with limits. Bluetooth adds another hurdle because Home Assistant needs Linux system services that a raw USB device alone cannot provide. If you want dependable access to your radios, install Home Assistant OS on dedicated hardware or in a VM whose USB support you have already verified. You can also add a networked Bluetooth proxy to cover Bluetooth devices without relying on your Mac’s built-in radio.

Docker Desktop puts devices behind a Linux VM

A container talks to hardware through the operating system that runs its container engine. Because Docker Desktop runs that engine inside a Linux VM, your container only sees the Linux devices available to the VM, and it misses devices that only macOS can see. Docker’s architecture documentation explains how Docker Desktop bridges the Linux environment and macOS for files and network traffic.

To use a USB Zigbee or Z-Wave radio, the Linux environment needs a direct device interface. If you share a Mac folder with a container, Docker still does not expose that hardware interface. Docker’s Desktop FAQ states plainly that Docker Desktop does not support direct USB device passthrough.

Network settings will not get around this boundary either. When you publish a port, Docker forwards network traffic without exposing USB hardware, and Docker’s host-networking feature also leaves physical devices behind. If your container can reach the internet but fails to reach a device on your local network, check macOS Local Network permission as a separate networking issue. Even if you turn that permission on, macOS still will not give the container USB or Bluetooth access.

Using USB/IP as a workaround

Docker documents USB/IP, a method that shares a USB device over a network so the Docker environment can attach to it. Under Docker’s USB/IP instructions, you run a privileged helper container that connects to the USB device and makes the resulting Linux device available to another container. You have to keep that helper running to hold the connection open.

You take on two main trade-offs if you go this route. Docker warns that it cannot guarantee device compatibility, and the privileged helper container gets broad access to the host. Docker’s example also does not confirm whether any specific Zigbee, Z-Wave, or Bluetooth adapter will work reliably with Home Assistant over USB/IP. Treat this approach as an advanced experiment.

If you do get Home Assistant to see a USB-to-serial adapter, point it to the stable /dev/serial/by-id/... path whenever the host provides one. Shorter names like /dev/ttyUSB0 can shift when a device reconnects or when the host detects your adapters in a different order. Home Assistant covers these path differences in its serial device guidance.

Bluetooth needs Linux services as well as a radio

Home Assistant’s Bluetooth integration uses Bluetooth Low Energy (BLE), the low-power Bluetooth standard found in many sensors and smart-home devices. On Linux, Home Assistant depends on BlueZ, the Linux Bluetooth service, along with D-Bus, a local messaging service that lets programs talk to system services.

If you run Home Assistant Container on Linux, the host must run BlueZ and give the container access to the D-Bus socket, which is the connection point for that messaging service. Home Assistant also documents the NET_ADMIN and NET_RAW capabilities for this setup. Even when Linux detects a USB Bluetooth dongle, Home Assistant still needs BlueZ and D-Bus before its Bluetooth integration will work. You can check the full list in Home Assistant’s Bluetooth requirements.

Because Docker Desktop runs Linux inside a VM, it does not automatically hand your Mac’s built-in Bluetooth radio to Home Assistant as a Linux Bluetooth adapter. Docker’s documentation explains the Linux VM boundary, and Home Assistant’s Bluetooth guide spells out the Linux-side requirements. Neither source proves that Bluetooth bridging fails on every Mac and VM combination. Before you rely on it, check whether your specific virtualization software and hardware support passing the Mac’s radio through.

Choose a Home Assistant setup that fits your radio

For the most dependable local radio access, install Home Assistant OS on hardware that can see your adapters directly. The project recommends running Home Assistant OS on a dedicated device. When you use a Raspberry Pi, an x86-64 computer, or a supported Home Assistant appliance, Home Assistant talks to your adapters directly without routing USB through a macOS-to-Linux VM. The installation overview lists the supported methods and hardware.

If you need to keep Home Assistant on your Mac, install Home Assistant OS in a VM by following Home Assistant’s macOS instructions. That guide walks you through setting up the VM, though it does not include a full procedure for passing USB devices into it. Verify that your virtualization software supports passthrough for your exact adapter before you depend on it.

If you prefer to manage a Linux host and Docker yourself, run Home Assistant Container. Home Assistant’s Linux installation instructions require Docker Engine and note that Docker Desktop does not work for this path. On a Linux host, you can map a serial device straight into the container and set up the Bluetooth services described above. Keep in mind that Home Assistant Container leaves out the apps that come with Home Assistant OS.

Home Assistant ended support for the Core and Supervised installation methods with release 2025.12, including security updates. For any new setup, choose Home Assistant OS or Home Assistant Container, the two methods the project supports.

Use a Bluetooth proxy when Home Assistant runs elsewhere

A Bluetooth proxy picks up nearby Bluetooth signals and forwards them to Home Assistant over Wi-Fi or Ethernet. You can place the proxy close to your BLE devices while Home Assistant runs on another machine or inside a VM. Home Assistant recommends proxies in many setups where USB passthrough makes virtualization harder, and its Bluetooth connectivity guidance lists the supported proxy options.

Check what a proxy can do before you choose one. Some devices only listen for Bluetooth advertisements, which are short signals that nearby devices broadcast. Because those proxies cannot open a connection, they will not work for integrations that need an active connection. A proxy can fix a Bluetooth coverage problem, though it will not replace a USB Zigbee or Z-Wave adapter.

What I'm building

Delegate tasks. Get software.

Give Vroni a GitHub issue, bug report, spec, or rough idea. It reads the repo, plans the change, writes code, runs checks, and works toward a review-ready pull request.

Take a look at vroni.com

Email updates

Usually a new article and a few links I found interesting.

No spam. Unsubscribe with one click.

Leave a Reply

Your email address will not be published. Required fields are marked *