mirror of
https://github.com/budtmo/docker-android.git
synced 2026-04-25 12:15:52 +03:00
[GH-ISSUE #177] Cannot -H to the host adb server #126
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/docker-android#126
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gitathrun on GitHub (Jul 16, 2019).
Original GitHub issue: https://github.com/budtmo/docker-android/issues/177
💬 Questions and Help
Please make sure that it is an issue / a feature request. If it is a question / help wanted, please visit our group chat. Thank you!
Hello, I am trying to the real-device version of the docker image, but when I try to "adb -H " to the host machine adb server, following error shows:
My host machine is Linux and my docker info is listed below, the real android device is connected to this host machine and the host machine adb cmd can recognise the device as well.
And I try to access the Host Linux machine from a PC (my development machine).
I have used the x86 simulator version docker image, it works fine when I access the emulator from a remote PC, and the virtual device show up in my Android Studio. But why it blocks the real device docker?
@Louis-me commented on GitHub (Jul 21, 2019):
+1
@Arne-B commented on GitHub (Aug 28, 2019):
I needed to start adb on the host with adb -a -P <PORT_NUMBER> nodaemon server .
Only then adb was bound to external addresses. (Seems like a bug to me.). Or you could do some kind of local to external port forwarding. Like the containers are doing (https://github.com/budtmo/docker-android/blob/master/src/port_forward.sh) Thats why you can connect to your emulators.
The way I am using real devices now is to spin up a separate container for each device and share the /dev/bus/usb:/dev/bus/usb volume. Then i simply set environment var ANDROID_SERIAL= to the specific device ID for each container. This way screen mirroring and so on works on each instance, which you can target individually.
@MatthiasCartelDkt commented on GitHub (May 6, 2021):
+1