docker-android icon indicating copy to clipboard operation
docker-android copied to clipboard

unhealthy container

Open mehrdad86 opened this issue 4 years ago • 7 comments

🐛 Bug Report

Operating System: Ubuntu 20.10

Docker Image: budtmo/docker-android-x86-8.1

Docker Version:
Docker version 20.10.6

Docker Command to start docker-android:
docker run --privileged -d -p 6080:6080 -p 5554:5554 -p 5555:5555 -e DEVICE="Samsung Galaxy S6" -v /usr/local/backup/emulator1/.android:/root/.android -v /usr/local/backup/emulator1/android_emulator:/root/android_emulator --name emulator1 budtmo/docker-android-x86-8.1

Actual Behavior

After 2 or more runs Container shows unhealthy

mehrdad86 avatar May 22 '21 19:05 mehrdad86

I have the same issue. After 2 or more runs Container shows unhealthy and in noVNC doesn't appear the GUI of the emulator, only the DockerAndroid background. I've attached the log of the container.

log.txt

sampaxk avatar Aug 04 '21 09:08 sampaxk

Here I struggle with the same problem, the log also is equal to @sampaxk's, after executing docker run multiple times, the container goes unhealthy, docker system prune does not help, but restarting the whole system works (maybe restarting the Docker service itself work too, I haven't tried that yet)

yasfatft avatar Aug 08 '21 09:08 yasfatft

I struggle too with this problem. budtmo/docker-android-x86-9.0 Sometimes it resolves without doing nothing. Today nothing seems to fix it and now I'm completly blocked :-( Restarting the docker service nor the machine solve the problem.

gorru avatar Aug 16 '21 15:08 gorru

It seems that the problem depends on the content of the mounted volumes. In my case I'm mounting a jenkins workspace and cleaning it before the mount solve the problem.

gorru avatar Aug 17 '21 07:08 gorru

It seems that the problem depends on the content of the mounted volumes. In my case I'm mounting a jenkins workspace and cleaning it before the mount solve the problem.

In my scenario there are no volumes at all.

yasfatft avatar Aug 23 '21 19:08 yasfatft

I had the same issue, fixed it by firing the emulator process manually using this command

sudo docker exec -it -d container_id ./emulator/emulator -avd device_name

to know the device name exactly, you will need to run this command

sudo docker exec -it -d container_id ./emulator/emulator -list-avds

Mohammed-Ashour avatar Sep 09 '21 15:09 Mohammed-Ashour

I remove the android cache file (cache.img only not the cache.img.qcow2) in /root/android_emulator inside the container before starting the container and it's always healthy now

Herrnobiz avatar Oct 14 '21 21:10 Herrnobiz