mirror of
https://github.com/budtmo/docker-android.git
synced 2026-04-25 20:25:57 +03:00
[GH-ISSUE #198] Unable to see Emulator #141
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/docker-android#141
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 @demersonh on GitHub (Sep 18, 2019).
Original GitHub issue: https://github.com/budtmo/docker-android/issues/198
Hi,
I am trying to run this one on an azure VM but can't get the android emulator to pop-up. I am able to connect to noVNC but I can't see any emulator popping up.
When running adb -H localhost devices nothing shows up, it is like it is offline.
Has anyone experienced this? Could anyone please assist?
Regards,
Demerson
@mattcopas commented on GitHub (Sep 19, 2019):
+1 I'm also experiencing this - running on both MacOS and Ubuntu 18.04
@mattcopas commented on GitHub (Sep 20, 2019):
@demersonh Try running (from inside the docker container):
emulator -list-avdsto list your virtual devices,then run
emulator @devide_nameI get an error:
Running on MacOSX
@demersonh commented on GitHub (Sep 24, 2019):
@mattcopas I ended up removing that one as it didn't work. I was trying to run it within an azure VM.
I still couldn't find an alternative :(
I saw a few more people were having the same issues but none of the solutions appear to work... Anyways, I hope you can manage to work it out and use this one. If I mind any alternative, I will share it with you.
Cheers
@cemo commented on GitHub (Sep 26, 2019):
I think that this is because we are using "Docker for Mac" which is using "hypervisor". Hypervisor is not supporting nested virtualization. Instead we need to setup a docker machine with VirtualBox and use it for this purpose.
I think using a ARM based device will solve our problem.
@TheoNeUpKid88 commented on GitHub (Oct 1, 2019):
@cemo please update the ticket if your approach does resolve this issue. - Thanks
@cemo commented on GitHub (Oct 1, 2019):
I gave up these approaches since latest Android API's are not supporting ARM based emulators. So I decided to use Genymotion on my box with Docker based development environment. I have not completed my work but it think it will be working.
@mattcopas commented on GitHub (Oct 2, 2019):
I've managed to get this working on Ubuntu 18.04 physical machine (not a VM) with a slightly customised dockerfile:
docker build -t my-custom-emulator .docker run --privileged -it -p 6080 -e DEVICE="Nexus 5" my-custom-emulatorPrivileged mode is essential, and the sdkmanager update helped too.
@cemo commented on GitHub (Oct 3, 2019):
Linux boxes are supporting nested virtualization. It would not be surprise it to be working.
@TheoNeUpKid88 commented on GitHub (Oct 8, 2019):
This could potentially be another issue. Though, when I attempt to run e.g.,
docker run --privileged -it -p 6080 -e DEVICE="Nexus 5" my-custom-emulatorwith a volume to pre-load an APK the results the same, with the emulator crashing and/ or not being visible.@gitkav commented on GitHub (Oct 18, 2019):
Hi,
I am facing the same issue. My docker is running on Mac. Is there any solution for this issue?
@budtmo commented on GitHub (Oct 22, 2019):
duplicated #93