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

Run Android docker image in docker running on a windows instead using a virtual machine and installing Ubuntu

Open MrSharpp opened this issue 2 years ago • 1 comments

💬 Questions and Help

Please make sure that it is an issue / a feature request. If it is a question / help wanted, please visit our group chat. Thank you!

Hey is it possible to run the android docker image in a docker running in windows instead of installing a VM ware and then installing Ubuntu then running this image?

and if its not possible right now, can i know why and what happens behind the scenes so this is not possible with windows?

MrSharpp avatar May 09 '22 13:05 MrSharpp

You can, using wsl 2 like i did, just make sure wsl 2 installed and when installing docker for windows you select wsl2 over hyper-v for the engine

KennyFrans avatar Jul 07 '22 15:07 KennyFrans

Hi @KennyFrans ,

could you contribute to the documentation and document your setup and create a PR? others can benefit from it.

budtmo avatar Jul 14 '23 10:07 budtmo

That would be very nice if you could do that @KennyFrans

I was just trying to set this up on windows and I am getting annoyed I cant have my program I'm making run on Windows AND Linux

SourCandy80 avatar Jul 15 '23 03:07 SourCandy80

I think windows doesnt support nested virtualization so we cannot another emulator in a container or wsl.

MrSharpp avatar Jul 20 '23 07:07 MrSharpp

it works fine under wsl2. use this answer to enable nestedvirtualization

https://serverfault.com/a/1115773

foureight84 avatar Aug 02 '23 09:08 foureight84

could you help with the documentation @foureight84 and create a PR? I will merge the PR because it might be useful for others.

budtmo avatar Aug 02 '23 10:08 budtmo

could you help with the documentation @foureight84 and create a PR? I will merge the PR because it might be useful for others.

Will do in a few hours. :). I'm also trying to get it working behind traefik as well. I'll update documentation with PR after that is working too.

foureight84 avatar Aug 02 '23 10:08 foureight84

documentation added on PR #379 . credits @foureight84

budtmo avatar Aug 04 '23 10:08 budtmo