Docker Community Forums

Share and learn in the Docker community.

Unable to access Android USB Device from Docker Container

docker
virtualbox

(Srikanthvejendla) #1

Unable to access Android USB Device from Docker Container

I want to run my appium tests on android device tethered through usb.

Docker Image: https://hub.docker.com/r/rgonalo/appium/

I created a virtualbox as mentioned in the docs-

docker-machine create --driver virtualbox default
docker-machine env default
eval "$(docker-machine env default)"
docker-machine start default

I grabbed the ip address and appium port and tried running tests, i keep getting no android devices found.

Note: I have installed the extension pack and added the device filter for the android device, I also did the “adb kill-server” on my host.

Anything that i am doing wrong?


(David Sheets) #2

Unfortunately, Docker for Mac does not support USB device pass-through at this time. Please see “Can I pass-through a USB device to a container?” at https://docs.docker.com/docker-for-mac/faqs/#/can-i-pass-through-a-usb-device-to-a-container. The recommended solution is to continue using Docker Toolbox if you require this feature. Sorry for the inconvenience.