Interesting concept but seems to require custom android-specific kernel modules (ashmem, binderfs), which means the android containers aren't very containerized but leak into the host kernel.
The Anbox project relies on the exact same 2 modules: https://docs.anbox.io/userguide/install_kernel_modules.html. While these are "android-specific", they are present in the linux kernel tree, and even come pre-installed in Ubuntu 19.04 (and probably more distros).
Curious in what way?
Running either of
docker run --rm --entrypoint /bin/uname alpine:latest -a
or uname -a
gives you the same kernel version. The only difference will be in the hostname.[0]: https://embeddedbits.org/introduction-linux-containers/
ps -ef
on the host and you'll see the processes in the containers too. That doesn't happen if those processes run in a VM.The container on the other hand cannot see the host's processes or other things. At least not without an exploit.