I'm trying to debug an app (or simply inspect pages in the Chrome browser) on my mobile device and I'm trying to use docker containers for housing adb. Everything goes well while starting up the adb server in the container and I even get to list my device with adb devices
, but once I go to chrome://inspect/#devices (on my local machine), I don't get to see my device listed over there.
This is how I'm running the docker container:
docker run --rm -it --privileged -v /dev/bus/usb:/dev/bus/usb -p 5037:5037 beevelop/ionic bash
What am I missing here? I tried exposing some ports like 9222 and 9229 (-p 9222:9222 -p 9229:9229
) but it had no impact on results. I've also already installed usbutils
on the container.
/dev/kvm
and the port5900
and I'm able to connect with a remote desktop client like Remmina through VNC easily (I just install the vnc client on the host), everything else in the image. I don't even need to run the container with theprivileged
flag (that I avoid at all costs). Now I'm trying to find how to see the device in chrome.