运行 模拟器 android 和 docker for windows

Run emulator android and docker for windows

我在 windows 10 上为 Windows 安装了 Docker。 我使用 Android Studio 和模拟器 android 但它与 Hyper-v

不兼容

我看过这个解决方案 但我认为他使用 Docker 工具箱....

运行 docker 和 android 模拟器的最佳方法和最佳解决方案是什么?

感谢您的帮助

您可以 运行 Docker 通过使用 VirtualBox(例如 ubuntu 或 centos)创建虚拟机 Linux 然后 运行 docker 在那个 VM 里面。

对于 Windows 中的原生 运行ning docker,您需要启用 Hyper-V,这与常规 Android SDK 模拟器不兼容 - 然后您将需要Microsoft Android 模拟器太旧/与较新的 Android 版本不兼容。

所以,对我来说,唯一的解决方案是 Docker 使用 VirtualBox 在专用 VM 中完成您的工作。

---- 更新 2018-07-19 -----

似乎 Google 刚刚提供了一个与 Hyper-V 兼容的新版本的模拟器。检查 https://android-developers.googleblog.com/2018/07/android-emulator-amd-processor-hyper-v.html