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

gpu acceleration in docker-android

Open K4W1H0R53 opened this issue 6 years ago • 1 comments

hey guys, i have a little problem, how to enable gpu acceleration in docker-android?

I have a rx580 graphic card and my host system is archlinux with open source radeon driver installed.

I use the command "docker run --privileged -d -p 6080:6080 -p 5554:5554 -p 5555:5555 -e EMULATOR_ARGS="-gpu host" --name android-docker budtmo/docker-android-x86-8.1" , create a container and it can start the emulator normally, but the cpu useage is very high.

In container,I try to use "glxinfo | grep rendering" , it shows "Yes"; Then i try to use "glxinfo | grep OpenGL", it can show the correct opengl version.

I also try "Settings==>Advanced", choose options "Desktop native OpenGL" and "Renderer maximum" , but it still have no use.

I think the problem is a "docker" problem, but there are not many discussion. Whether I should install a ROCM to enable the gpu acceleration? or other solution?

thx.

update1: it seems that if i use qemu as vnc server, avd must work under "gpu guest"mode, if i want to use gpu host, i should use avd in host system.

K4W1H0R53 avatar Jul 25 '19 11:07 K4W1H0R53

Also looking for this. + 1

KarthikHebbarMN avatar Jun 11 '23 08:06 KarthikHebbarMN