Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running docker on Android

With Android 4.4 KitKat, Google is upgrading linux kernel to version 3.8 which is the required kernel version for Docker.

I don't know the AUFS part but will there be a way to run docker containers on android with this update?

like image 655
Xelom Avatar asked Oct 11 '13 09:10

Xelom


People also ask

Can I run Docker on mobile?

It is possible to use it for running docker on an android device using an application like termux or userland to install a qemu package. The best way is to use alpine linux terminal, an android app available on github.

How do I run a Docker in Termux?

Create a Linux VM and install Docker in it so you can (slowly) run x86 Docker containers on your Android device. Useful keys: Ctrl+a x: quit emulation. Ctrl+a h: toggle QEMU console.

Do Android apps run in containers?

In the case of Android for Work, apps don't need to be wrapped to work in Android 5.0 Lollipop's built-in container -- you can run any existing Play Store app in that container. However, wrapped apps are required for earlier versions of the Android for Work container app.

Is Podman free?

Podman is a project from Red Hat that is open source and free to download. It is a relative newcomer to the containerization scene, with version 1.0 being released in 2019.


2 Answers

According to the documentation, the Android kernel is missing quite a few of the kernel features needed by LXC.

Perhaps in the future with Docker 1.x, it might be possible to write a plugin that uses Android features instead of LXC. But for now, you would need to build a custom Android kernel and then build LXC for it.

There are some people actually working on that, and Stéphane Graber has a good summary of the difficulties on his blog.

like image 156
Rohan Singh Avatar answered Oct 23 '22 09:10

Rohan Singh


It depends if this kernel is compiled with the required features to run containers. If it's the case, then Docker could be used on Android (especially Docker 0.7, which is in release candidate state right now, and doesn't require AUFS anymore).

like image 6
jpetazzo Avatar answered Oct 23 '22 08:10

jpetazzo