TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Android in Docker without QEMU/emulator

226 pointsby PascalWover 3 years ago

13 comments

PascalWover 3 years ago
Came across this very useful project. It provides Docker images with Android running directly in Docker, without qemu or an emulator. I&#x27;ve never seen this before, all other solutions that I&#x27;m aware of either run the Android emulator in Docker or use qemu directly (like Anbox).<p>Advantage of this is that it&#x27;s very lightweight and does not require VT-X or AMD-V, ideal for running in cloud environments that typically do not expose this CPU capability.
评论 #29794018 未加载
评论 #29793925 未加载
评论 #29795228 未加载
pengaruover 3 years ago
What exactly is Docker enabling here beyond a Docker workflow, which is quite orthogonal to the presence of a vm or emulator?<p>Isn&#x27;t the enabling technology here just kernel-level android bits? Docker is fluff, yet ends up dominating the headline.
评论 #29798151 未加载
0x0over 3 years ago
Interesting concept but seems to require custom android-specific kernel modules (ashmem, binderfs), which means the android containers aren&#x27;t very containerized but leak into the host kernel.
评论 #29793951 未加载
评论 #29793688 未加载
评论 #29800104 未加载
marcodiegoover 3 years ago
Don&#x27;t forget waydroid: <a href="https:&#x2F;&#x2F;waydro.id&#x2F;" rel="nofollow">https:&#x2F;&#x2F;waydro.id&#x2F;</a> . Last time I tried, it worked reasonably well.
cranxover 3 years ago
This is interesting, but I don’t see this as something for use in development of Android apps. Given all Android’s quarks and fragmentation the use of real devices and Google’s emulators will provide a better surface to catch bugs during dev. What’s the primary use case for these containerized versions of Android?
评论 #29800452 未加载
评论 #29800231 未加载
wwwhizzover 3 years ago
required params (already added in docker image)<p><pre><code> qemu=1 </code></pre> How is that without qemu?
评论 #29795538 未加载
评论 #29795049 未加载
drranover 3 years ago
Will it work on WSL? It can be a good way to run Android on Windows.
评论 #29794825 未加载
评论 #29794144 未加载
jeroenhdover 3 years ago
How is this accomplished? Is this using Anbox or something similar I don&#x27;t understand how the Dockerfiles linked here end up running an instance of Android.
评论 #29794183 未加载
评论 #29793746 未加载
fareeshover 3 years ago
For development work I use the default Android emulator that comes with Android Studio.<p>Are any of these ones superior in terms of performance, resource utilization, etc? The cloud angle is mildly interesting although in my specific use-case I&#x27;d probably just end up paying for a service that can provide access to emulators in the cloud.<p>Is there more scope to do things like automating inputs etc this way? How would one go about that?
评论 #29794128 未加载
评论 #29794111 未加载
exdsqover 3 years ago
Trying to fix some Rust docker builds that are being killed by QEMU on Apple Silicon right now. I always believed Docker was cross platform, I had no idea how much of a pain it can be to use with buildx and --platform to get stuff working. SIGSEGV errors at random points, non-deterministic errors, <i>GAH!</i>
评论 #29798808 未加载
Tepixover 3 years ago
This could be useful for running WhatsApp inside a vm instead of your phone for those rare instances where it is needed.
评论 #29794465 未加载
评论 #29794301 未加载
评论 #29794827 未加载
评论 #29794237 未加载
goodpointover 3 years ago
I&#x27;d rather use waydroid to avoid the attack surface of docker and its complexity.
junonover 3 years ago
Perhaps a simple question, but... why?
评论 #29800788 未加载