# Accessing a USB device in Docker

**URL:** <https://community.umbrel.com/t/accessing-a-usb-device-in-docker/12515>\
**Category:** Support and Troubleshooting\
**Created:** [May 23, 2023, 1:01pm UTC](https://community.umbrel.com/t/accessing-a-usb-device-in-docker/12515 "2023-05-23T13:01:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![neuromancer](https://avatars.discourse-cdn.com/v4/letter/n/46a35a/32.png) [@neuromancer](https://community.umbrel.com/u/neuromancer)\
**Post date:** [May 23, 2023, 1:01pm UTC](https://community.umbrel.com/t/accessing-a-usb-device-in-docker/12515/1 "2023-05-23T13:01:01Z")

</div>

Hello everyone,

Our upcoming Umbrel app needs access to a particular USB device (HW wallet) that users will connect to the host device.

By default programs running inside Docker cannot access the host USB hub. Is there a worked out way that Umbrel handles these situations?

I’ve done some homework and it seems that a USB device can be made accessible to a Docker container, but there are two prerequisites:

1. [https://github.com/getumbrel/umbrel-os/blob/master/stage1/01-sys-tweaks/00-run.sh](https://github.com/getumbrel/umbrel-os/blob/master/stage1/01-sys-tweaks/00-run.sh) – this would have to copy a specific udev rules file to the host device during the OS installation.

2. The container would then have to be started like `docker run -t -i --device=/dev/ttyUSB0 ...`, making the device visible to the app inside it.

Are these steps feasible? Would such a PR even be merged? How would existing Umbrel installations get updated with this configuration?

Thanks
