Open copiltembel opened 4 years ago
I have tried running the image created by this script using a Docker service:
$ docker service create --replicas 1 --name t1 -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -e "EMULATOR_PARAMS=-gpu host" --device /dev/kvm --publish 8554:8554/tcp --publish 5555:5555/tcp q-google-x86-gpu:30.0.12
But there are multiple problems:
Do you have any idea how I could achieve running the emulator in Docker service?
It looks like there are 2 challenges:
--mount type=bind,src=/tmp/.X11-unix,dst=/tmp/.X11-unix
Yep, it's really just the devices (/dev/kvm in this case) that don't work.
I have tried running the image created by this script using a Docker service:
$ docker service create --replicas 1 --name t1 -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -e "EMULATOR_PARAMS=-gpu host" --device /dev/kvm --publish 8554:8554/tcp --publish 5555:5555/tcp q-google-x86-gpu:30.0.12
But there are multiple problems:
Do you have any idea how I could achieve running the emulator in Docker service?