<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Passthrough USB to Docker]]></title><description><![CDATA[<p dir="auto">In this example I will be passing through a <a href="https://www.amazon.com/dp/B09KXTCMSC?ref=https://forum.sumisu.xyz" target="_blank" rel="noopener noreferrer nofollow ugc">Sonoff Zigbee</a> antenna to a Ubuntu 22.04 server running Docker. We will be adding the device to a Home Assistant container within Docker.</p>
<hr />
<p dir="auto">First you’ll need to plug the USB antenna into your computer (In my case I am running an Ubuntu 22.04 server). If you need to find what version you are running, you can use:</p>
<pre><code>lsb_release -a
</code></pre>
<ol start="2">
<li>SSH into the server and run:</li>
</ol>
<pre><code>ls /dev/serial/by-id
</code></pre>
<p dir="auto">This will list the USB devices plugged in, and you should see an output like this: <code>usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_&lt;Device ID&gt;-port0</code>. The <code>&lt;Device ID&gt;</code> will be whatever it shows when you run the command above. You will need to copy this line of text, because this is what we are going to be pasting into our Docker Compose file.</p>
<hr />
<p dir="auto">In the compose file, we need to add the device like this:</p>
<pre><code>    devices:
    - /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_&lt;Device ID&gt;-port0
</code></pre>
<p dir="auto">Here is an example with Home Assistant:</p>
<pre><code>services:
  homeassistant:
    container_name: homeassistant
    image: "ghcr.io/home-assistant/home-assistant:stable"
    ports:
      - "8123:8123"
    volumes:
      - homeassistant-config:/config
      - /etc/localtime:/etc/localtime:ro
      - /run/dbus:/run/dbus:ro
    restart: unless-stopped
    devices:
    - /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_&lt;Device ID&gt;-port0
volumes:
  homeassistant-config:
</code></pre>
<p dir="auto">After you restart the container the device should show up in the <code>Devices &amp; services</code> menu within the Home Assistant settings. I believe this will work for other USB devices and other containers, but I have only tried it with this specific example.</p>
]]></description><link>https://forum.sumisu.xyz/topic/47/passthrough-usb-to-docker</link><generator>RSS for Node</generator><lastBuildDate>Sat, 30 May 2026 23:25:13 GMT</lastBuildDate><atom:link href="https://forum.sumisu.xyz/topic/47.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 03 Feb 2025 04:49:21 GMT</pubDate><ttl>60</ttl></channel></rss>