How to: Android Device
You can give a container access to host's USB Android devices.

  ```console
  # on Linux
  docker run -it --privileged -v /dev/bus/usb:/dev/bus/usb -v $(pwd)/sdk:/opt/android-sdk thyrlian/android-sdk /bin/bash
  
  # or
  # try to avoid privileged flag, just add necessary capabilities when possible
  # --device option allows you to run devices inside the container without the --privileged flag
  docker run -it --device=/dev/ttyUSB0 -v $(pwd)/sdk:/opt/android-sdk thyrlian/android-sdk /bin/bash
  ```

Note:

* Connect Android device via USB on host first;

* Launch container;

* Disconnect and connect Android device on USB;

* Select OK for "Allow USB debugging" on Android device;

* Now the Android device will show up inside the container (`adb devices`).

Don't worry about `adbkey` or `adbkey.pub` under `/.android`, not required.

[Docker for Mac FAQ](https://docs.docker.com/docker-for-mac/faqs/#can-i-pass-through-a-usb-device-to-a-container) says:

  > Unfortunately it is not possible to pass through a USB device (or a serial port) to a container.