# Access BlinkStick from Docker container

**URL:** <https://forums.blinkstick.com/t/access-blinkstick-from-docker-container/1413>\
**Category:** Support\
**Created:** [January 7, 2021, 2:41am UTC](https://forums.blinkstick.com/t/access-blinkstick-from-docker-container/1413 "2021-01-07T02:41:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yudataguy](https://forums.blinkstick.com/letter_avatar_proxy/v4/letter/y/3d9bf3/32.png) [@yudataguy](https://forums.blinkstick.com/u/yudataguy)\
**Post date:** [January 7, 2021, 2:41am UTC](https://forums.blinkstick.com/t/access-blinkstick-from-docker-container/1413/1 "2021-01-07T02:41:48Z")

</div>

I’m trying to access the blinkstick from inside docker container (Docker for Windows). Couldn’t really find a way to have the usb device enabled. Any suggestion?

---

<div class="post-metadata">

**Author:** ![arvydas](https://forums.blinkstick.com/user_avatar/forums.blinkstick.com/arvydas/32/242_2.png) [@arvydas](https://forums.blinkstick.com/u/arvydas)\
**Post date:** [January 7, 2021, 8:52am UTC](https://forums.blinkstick.com/t/access-blinkstick-from-docker-container/1413/2 "2021-01-07T08:52:08Z")

</div>

Hey @yudataguy, welcome to the forums. I think this should be possible for Linux, but not sure about Windows though. What OS are your Docker images?

---

<div class="post-metadata">

**Author:** ![yudataguy](https://forums.blinkstick.com/letter_avatar_proxy/v4/letter/y/3d9bf3/32.png) [@yudataguy](https://forums.blinkstick.com/u/yudataguy)\
**Post date:** [January 7, 2021, 5:48pm UTC](https://forums.blinkstick.com/t/access-blinkstick-from-docker-container/1413/3 "2021-01-07T17:48:09Z")

</div>

I can test with linux first. the docker image is ubuntu 18.04

---

<div class="post-metadata">

**Author:** ![doug](https://forums.blinkstick.com/letter_avatar_proxy/v4/letter/d/dbc845/32.png) [@doug](https://forums.blinkstick.com/u/doug)\
**Post date:** [January 8, 2021, 4:59am UTC](https://forums.blinkstick.com/t/access-blinkstick-from-docker-container/1413/4 "2021-01-08T04:59:52Z")

</div>

I believe you are waiting for Hyper-V to allow USB passthrough. WSL2 and Docker for Windows both use Hyper-V under the covers. Changing the colors from PowerShell and the BlinkStick app work fine, since neither require Hyper-V.

Example attempt from my machine trying to pull any and all BlinkSticks from Ubuntu 20.04 in WSL2:

```auto
 ☁️ +32°F [23:54] ~/src/blinkstick ▶ cat test.js && echo ---- && node test.js
var blinkstick = require('blinkstick');

blinkstick.findAllSerials(function(serials) {
        console.log(serials);
});
----
[]

```

Article snippet in the WSL2 Github issue tracker:

`[...] unfortunately in this case though, this is not entirely WSL2's fault, since native USB pass-through is just not supported by Hyper-V, if it wasn't clear :) [...]`

> <https://github.com/microsoft/WSL/issues/2195#issuecomment-743421442>
