Is it possible to run containers on android devices?
I must note that I am not an expert in Android development. But I researched on this topic, and @Emile's answer is the easiest and closest you can get - as it seems.
You can actually run Fedora (and not only) image on top of the Termux and then launch Python inside. This is obviously not a docker, but might be helpful.You can find more info here.
In addition, I've found this topic on Quora which is a similar question:
Think about it: Docker abstracts the OS and that is all. The Android
OS is quite a different kernel than linux distributions, even though
it is linux. It might be tricky to get applications meant for a linux
distribution to run on Android/Docker.One of the main reasons to use docker is that it can provide
self-contained packages of applications which do not affect the rest
of the system. The Android applications, packaged as .apk files are
just that.
Other than that I was able to find this topic on StackOverflow which does not really resolve the issue. As the issue might be related to AUFS and some Kernel features needed by LXT which are not present in Android - now some of them is from what I remember.
Also there is a claim that it is possible on docker forum and weibo (use translation to English), but there is only a screenshot provided by user and no details on how to do it, besides "it took a lot of effort" statement. So it would seam that this is still a not well known part, or maybe someone will be able to actually provide more complementary information - maybe try on Docker forum or GitHub.
Running docker on Android
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.
Related Topics
"No Such File or Directory" Trying to Execute Linux Binary on Android Device
Detect a New Android Notification
Getexternalstoragepublicdirectory Deprecated in Android Q
How to Define a Circle Shape in an Android Xml Drawable File
How to Do Http Authentication in Android
Get and Parse CSV File in Android
How to Find Android Source Code Online
Quality Problems When Resizing an Image at Runtime
Voice Recognition on Android with Recorded Sound Clip
Android Emulator: Could Not Get Wglgetextensionsstringarb Error
How to Remove Strings from a Compiled Binary (.So)
Force an Android Activity to Always Use Landscape Mode
Filtering Listview with Custom (Object) Adapter
How to Make an App's Background Image Repeat
Eclipse Error "Adb Server Didn't Ack, Failed to Start Daemon"
How to Send an Email with a File Attachment in Android
How to "Select Android Sdk" in Android Studio
Java.Lang.Illegalstateexception: Can Not Perform This Action After Onsaveinstancestate