This vagrant box contains docker>docker container with adb. It supports the mounting of Android devices connected to the host with USB. Modify the Vagrant file for the USB filer for working with your machine.
- Vagrant is installed on the machine.
- virtualbox-extension-pack installed on the machine.
-
Clone repo
git clone https://github.com/pr4bh4sh/adb-on-docker.git
-
Navigate to folder
cd adb-on-docker
-
Edit the Vagrantfile for the USB device you have.
-
Run
vagrant up;vagrant provision
-
Login into the box
vagrant ssh
-
Start the docker container
docker run -d --privileged -v /dev/bus/usb:/dev/bus/usb --name adbd sorccu/adb
-
Now execute to check the device connectivity with the docker container
docker run --rm -ti --net container:adbd sorccu/adb adb devices
@vbanthia @sorccu