narfman0 / docker-android-emulator

Docker container for android emulator
GNU General Public License v3.0
0 stars 0 forks source link

Unable to connect to android emulator outside container #1

Open jsperafico opened 5 years ago

jsperafico commented 5 years ago

Hello @narfman0,

I'm using Windows 10 Enterprise Edition, with docker running Linux containers. Docker version 18.09.2, build 6247962

In order to use your image on the Prompt Command I executed: docker run --privileged -p 5037:5037 -p 5554:5554 -p 5555:5555 -p 5900:5900 --name android-emulator narfman0/docker-android-emulator

Using user emulator to connect to the container and run on shell the following command adb devices, it shows the output describled bellow:

List of devices attached
emulator-5554   device

On Google Chrome, using a tab with chrome://inspect/#devices, I was unable to find this emulator on docker by using the target discovery settings below:

localhost:5554
localhost:5555
localhost:5037
android-emulator:5554
android-emulator:5555
android-emulator:5037

Also I've tried to connect using a VNC Client without any success. Using localhost:5900, I got the following error:


Possible causes:

- Another user is already listening on this ID
- Bad connection

Could you please give me some help on how to see or access this device outside docker container?

Sorry for the inconvinience and thank you for share with us this solution.

narfman0 commented 5 years ago

Hmmm not sure, I think I had to do interesting x things and im not sure how that translates to windows. i think i remember another docker emu, might try that for windows.

On Wed, May 29, 2019, 2:59 PM Jonathan Pinto Sperafico < notifications@github.com> wrote:

Hello @narfman0 https://github.com/narfman0,

I'm using Windows 10 Enterprise Edition, with docker running Linux containers. Docker version 18.09.2, build 6247962

In order to use your image on the Prompt Command I executed: docker run --privileged -p 5037:5037 -p 5554:5554 -p 5555:5555 -p 5900:5900 --name android-emulator narfman0/docker-android-emulator

Using user emulator to connect to the container and run on shell the following command adb devices, it shows the output describled bellow:

List of devices attached emulator-5554 device

On Google Chrome, using a tab with chrome://inspect/#devices, I was unable to find this emulator on docker by using the target discovery settings below:

localhost:5554 localhost:5555 localhost:5037 android-emulator:5554 android-emulator:5555 android-emulator:5037

Also I've tried to connect using a VNC Client without any success. Using localhost:5900, I got the following error:

Possible causes:

  • Another user is already listening on this ID
  • Bad connection

Could you please give me some help on how to see or access this device outside docker container?

Sorry for the inconvinience and thank you for share with us this solution.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/narfman0/docker-android-emulator/issues/1?email_source=notifications&email_token=AAJ4KXFXTJDIX5SI6DZ6U4DPX2D4XA5CNFSM4HQNDDR2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GWPZXGQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJ4KXCQ7KWPRLTF7AW47TTPX2D4XANCNFSM4HQNDDRQ .

jsperafico commented 5 years ago

I had tried a lot of images, but unfortunately couldn't make it work. Let me know if you need some help, I'll try my best to help you out. Thanks a lot!