Unable to access Android USB Device from Docker Container

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?

Not sure what you are missing exactly, can you share the steps and dockerfile. Meanwhile, you can check https://github.com/pr4bh4sh/adb-on-docker for reference.