Posts

Showing posts from February, 2018

How to connect adb devices to linux container

Image
Assuming that you have Ubuntu image pulled in docker , in case not!  you can download with command docker pull ubuntu For more reference you can refer below link https://docs.docker.com/engine/reference/commandline/pull/#pull-an-image-by-digest-immutable-identifier Once the image is downloaded, you can check like below docker images | grep ubuntu To run the image as container docker run -ti -d --privileged ubuntu Check container id docker ps Lets run the command inside container , using container id docker exec -ti 8991d0a7f32c /bin/bash Verify if lsusb is installed or not , lsusb is used to know the hardware devices attached to the host machine. lsusb As per above error , lsusb is not recognized , so we need to install it. apt-get update apt-get install usbutils Check lsusb now Great !! lsusb is now installed on your container next step is to check java and install it in case it is not there in contain