sorccu / docker-adb

Dockerfile and instructions for ADB.
Other
200 stars 74 forks source link

improve the example of Pattern 2 #18

Open libozhu opened 4 years ago

libozhu commented 4 years ago

hello, guys, just something to add to fulfil the Pattern 2 - Host network (easy but feels wrong) same way to start the server by binding the ADB server directly to the host, and know the host ip to lanuch the adb client in the same machine: docker run -e "ADB_SERVER_SOCKET=tcp:xxxxx:5037" xxx:xx adb devices need pass the host ip to container by environment variable.

each container in the same machine still have own ip.