[GH-ISSUE #201] Android emulator doesnt show on VNC #143

Closed
opened 2026-03-01 15:40:53 +03:00 by kerem · 2 comments
Owner

Originally created by @sealabr on GitHub (Oct 8, 2019).
Original GitHub issue: https://github.com/budtmo/docker-android/issues/201

🐛 Bug Report

Hello, I cant open the android emulator, I'm doing something wrong?

first create a docker container and then build the project, right?

Operating System:
5.0.0-31-generic #33~18.04.1-Ubuntu SMP Tue Oct 1 10:20:39 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Docker Image:
docker-android-x86-8.1

Docker Version:
Docker version 19.03.2, build 6a30dfc

Docker-compose version:
1.24.1, build 4667896b

Docker Command to start docker-android:
$ docker run --privileged -d -p 6080:6080 -p 5554:5554 -p 5555:5555 -p 4723:4723 --name android-container-appium budtmo/docker-android-real-device

$ docker run -it --rm -v $PWD/android-testing/ui/espresso/BasicSample:/root/tmp budtmo/docker-android-x86-8.1 tmp/gradlew build

Actual Behavior

Screenshot from 2019-10-08 14-08-56

fabio@fabio-pc:~/Docker$ sudo docker ps -a
CONTAINER ID        IMAGE                               COMMAND                  CREATED             STATUS              PORTS                                                                                        NAMES
3b625936b5a0        budtmo/docker-android-real-device   "/bin/sh -c '/usr/bi…"   20 minutes ago      Up 20 minutes       0.0.0.0:4723->4723/tcp, 0.0.0.0:5554-5555->5554-5555/tcp, 4567/tcp, 0.0.0.0:6080->6080/tcp   android-container-appium



fabio@fabio-pc:~/Docker$ sudo docker run -it --rm -v $PWD/testing-samples/ui/espresso/BasicSample:/root/tmp budtmo/docker-android-x86-8.1 tmp/gradlew build
Downloading https://services.gradle.org/distributions/gradle-4.6-all.zip
.............................................................................................................................................................................................
Unzipping /root/.gradle/wrapper/dists/gradle-4.6-all/5vpsfhg9sgbuqofrbh1l21ueq4/gradle-4.6-all.zip to /root/.gradle/wrapper/dists/gradle-4.6-all/5vpsfhg9sgbuqofrbh1l21ueq4
Set executable permissions for: /root/.gradle/wrapper/dists/gradle-4.6-all/5vpsfhg9sgbuqofrbh1l21ueq4/gradle-4.6/bin/gradle
Starting a Gradle Daemon (subsequent builds will be faster)

> Task :buildEnvironment 

------------------------------------------------------------
Root project
------------------------------------------------------------

classpath
No dependencies

A web-based, searchable dependency report is available by adding the --scan option.


BUILD SUCCESSFUL in 1m 28s
1 actionable task: 1 executed

And stoped here...

Originally created by @sealabr on GitHub (Oct 8, 2019). Original GitHub issue: https://github.com/budtmo/docker-android/issues/201 ## 🐛 Bug Report Hello, I cant open the android emulator, I'm doing something wrong? first create a docker container and then build the project, right? Operating System: 5.0.0-31-generic #33~18.04.1-Ubuntu SMP Tue Oct 1 10:20:39 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux Docker Image: docker-android-x86-8.1 Docker Version: Docker version 19.03.2, build 6a30dfc Docker-compose version: 1.24.1, build 4667896b Docker Command to start docker-android: $ docker run --privileged -d -p 6080:6080 -p 5554:5554 -p 5555:5555 -p 4723:4723 --name android-container-appium budtmo/docker-android-real-device $ docker run -it --rm -v $PWD/android-testing/ui/espresso/BasicSample:/root/tmp budtmo/docker-android-x86-8.1 tmp/gradlew build ## Actual Behavior ![Screenshot from 2019-10-08 14-08-56](https://user-images.githubusercontent.com/21187479/66417168-cee60e00-e9d5-11e9-97cb-1a789aec2162.png) ``` fabio@fabio-pc:~/Docker$ sudo docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 3b625936b5a0 budtmo/docker-android-real-device "/bin/sh -c '/usr/bi…" 20 minutes ago Up 20 minutes 0.0.0.0:4723->4723/tcp, 0.0.0.0:5554-5555->5554-5555/tcp, 4567/tcp, 0.0.0.0:6080->6080/tcp android-container-appium fabio@fabio-pc:~/Docker$ sudo docker run -it --rm -v $PWD/testing-samples/ui/espresso/BasicSample:/root/tmp budtmo/docker-android-x86-8.1 tmp/gradlew build Downloading https://services.gradle.org/distributions/gradle-4.6-all.zip ............................................................................................................................................................................................. Unzipping /root/.gradle/wrapper/dists/gradle-4.6-all/5vpsfhg9sgbuqofrbh1l21ueq4/gradle-4.6-all.zip to /root/.gradle/wrapper/dists/gradle-4.6-all/5vpsfhg9sgbuqofrbh1l21ueq4 Set executable permissions for: /root/.gradle/wrapper/dists/gradle-4.6-all/5vpsfhg9sgbuqofrbh1l21ueq4/gradle-4.6/bin/gradle Starting a Gradle Daemon (subsequent builds will be faster) > Task :buildEnvironment ------------------------------------------------------------ Root project ------------------------------------------------------------ classpath No dependencies A web-based, searchable dependency report is available by adding the --scan option. BUILD SUCCESSFUL in 1m 28s 1 actionable task: 1 executed ``` And stoped here...
kerem closed this issue 2026-03-01 15:40:53 +03:00
Author
Owner

@sealabr commented on GitHub (Oct 8, 2019):

hummm.. maybe this is the problem?

# docker-android.stderr.log^C
# tail docker-android.stderr.log
xterm: cannot load font "-Misc-Fixed-bold-R-*-*-13-120-75-75-C-60-ISO8859-1"
# tail supervisord.log --lines 1000
2019-10-08 09:58:05,033 CRIT Supervisor running as root (no user in config file)
2019-10-08 09:58:05,036 INFO supervisord started with pid 6
2019-10-08 09:58:06,038 INFO spawned: 'xvfb' with pid 9
2019-10-08 09:58:06,040 INFO spawned: 'port-forward' with pid 10
2019-10-08 09:58:06,042 INFO spawned: 'novnc' with pid 11
2019-10-08 09:58:06,044 INFO spawned: 'openbox' with pid 12
2019-10-08 09:58:06,046 INFO spawned: 'x11vnc' with pid 13
2019-10-08 09:58:06,047 INFO spawned: 'screen-copy' with pid 15
2019-10-08 09:58:06,049 INFO spawned: 'docker-appium' with pid 16
2019-10-08 09:58:06,050 INFO spawned: 'atd' with pid 18
2019-10-08 09:58:06,052 INFO spawned: 'auto-recording' with pid 19
2019-10-08 09:58:06,053 INFO spawned: 'adb-utils' with pid 21
2019-10-08 09:58:06,055 INFO exited: atd (exit status 0; not expected)
2019-10-08 09:58:07,081 INFO success: xvfb entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2019-10-08 09:58:07,081 INFO success: port-forward entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2019-10-08 09:58:07,081 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2019-10-08 09:58:07,081 INFO success: openbox entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2019-10-08 09:58:07,081 INFO success: x11vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2019-10-08 09:58:07,081 INFO success: screen-copy entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2019-10-08 09:58:07,081 INFO success: docker-appium entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2019-10-08 09:58:07,082 INFO spawned: 'atd' with pid 86
2019-10-08 09:58:07,083 INFO success: auto-recording entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2019-10-08 09:58:07,083 INFO success: adb-utils entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2019-10-08 09:58:07,087 INFO exited: atd (exit status 0; not expected)
2019-10-08 09:58:09,090 INFO spawned: 'atd' with pid 95
2019-10-08 09:58:09,097 INFO exited: atd (exit status 0; not expected)
2019-10-08 09:58:09,321 INFO exited: screen-copy (exit status 1; not expected)
2019-10-08 09:58:12,074 INFO exited: auto-recording (exit status 0; expected)
2019-10-08 09:58:13,077 INFO spawned: 'atd' with pid 96
2019-10-08 09:58:13,084 INFO exited: atd (exit status 0; not expected)
2019-10-08 09:58:14,085 INFO gave up: atd entered FATAL state, too many start retries too quickly

fabio@fabio-pc:~$ sudo grep --color vmx /proc/cpuinfo
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm cpuid_fault epb pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm ida arat pln pts md_clear flush_l1d
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm cpuid_fault epb pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm ida arat pln pts md_clear flush_l1d
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm cpuid_fault epb pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm ida arat pln pts md_clear flush_l1d
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm cpuid_fault epb pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm ida arat pln pts md_clear flush_l1d
<!-- gh-comment-id:539621995 --> @sealabr commented on GitHub (Oct 8, 2019): hummm.. maybe this is the problem? ``` # docker-android.stderr.log^C # tail docker-android.stderr.log xterm: cannot load font "-Misc-Fixed-bold-R-*-*-13-120-75-75-C-60-ISO8859-1" ``` ``` # tail supervisord.log --lines 1000 2019-10-08 09:58:05,033 CRIT Supervisor running as root (no user in config file) 2019-10-08 09:58:05,036 INFO supervisord started with pid 6 2019-10-08 09:58:06,038 INFO spawned: 'xvfb' with pid 9 2019-10-08 09:58:06,040 INFO spawned: 'port-forward' with pid 10 2019-10-08 09:58:06,042 INFO spawned: 'novnc' with pid 11 2019-10-08 09:58:06,044 INFO spawned: 'openbox' with pid 12 2019-10-08 09:58:06,046 INFO spawned: 'x11vnc' with pid 13 2019-10-08 09:58:06,047 INFO spawned: 'screen-copy' with pid 15 2019-10-08 09:58:06,049 INFO spawned: 'docker-appium' with pid 16 2019-10-08 09:58:06,050 INFO spawned: 'atd' with pid 18 2019-10-08 09:58:06,052 INFO spawned: 'auto-recording' with pid 19 2019-10-08 09:58:06,053 INFO spawned: 'adb-utils' with pid 21 2019-10-08 09:58:06,055 INFO exited: atd (exit status 0; not expected) 2019-10-08 09:58:07,081 INFO success: xvfb entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2019-10-08 09:58:07,081 INFO success: port-forward entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2019-10-08 09:58:07,081 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2019-10-08 09:58:07,081 INFO success: openbox entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2019-10-08 09:58:07,081 INFO success: x11vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2019-10-08 09:58:07,081 INFO success: screen-copy entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2019-10-08 09:58:07,081 INFO success: docker-appium entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2019-10-08 09:58:07,082 INFO spawned: 'atd' with pid 86 2019-10-08 09:58:07,083 INFO success: auto-recording entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2019-10-08 09:58:07,083 INFO success: adb-utils entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2019-10-08 09:58:07,087 INFO exited: atd (exit status 0; not expected) 2019-10-08 09:58:09,090 INFO spawned: 'atd' with pid 95 2019-10-08 09:58:09,097 INFO exited: atd (exit status 0; not expected) 2019-10-08 09:58:09,321 INFO exited: screen-copy (exit status 1; not expected) 2019-10-08 09:58:12,074 INFO exited: auto-recording (exit status 0; expected) 2019-10-08 09:58:13,077 INFO spawned: 'atd' with pid 96 2019-10-08 09:58:13,084 INFO exited: atd (exit status 0; not expected) 2019-10-08 09:58:14,085 INFO gave up: atd entered FATAL state, too many start retries too quickly ``` ``` fabio@fabio-pc:~$ sudo grep --color vmx /proc/cpuinfo flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm cpuid_fault epb pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm ida arat pln pts md_clear flush_l1d flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm cpuid_fault epb pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm ida arat pln pts md_clear flush_l1d flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm cpuid_fault epb pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm ida arat pln pts md_clear flush_l1d flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm cpuid_fault epb pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm ida arat pln pts md_clear flush_l1d ```
Author
Owner

@budtmo commented on GitHub (Oct 22, 2019):

duplicated #93

<!-- gh-comment-id:544817634 --> @budtmo commented on GitHub (Oct 22, 2019): duplicated #93
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/docker-android#143
No description provided.