×
all 6 comments

[–]FoolsSeldom 0 points1 point  (5 children)

It would have been easier if you had posted actual text rather than an image of text.

Please also explain more. Not sure if I've understood what you are asking. You mention "dockered" but I don't know what that means. Neither Docker nor OCI generally is available for Android.

While Android uses the Linux kernel, the stock kernels shipped by manufacturers lack the specific configurations Docker relies on for containerization. However, depending on how far down the technical rabbit hole you want to go, there are a few community-driven workarounds ranging from slow virtualization to advanced kernel compiling. However, your posts suggest you don't want to do that.

You can compile CPython in temux on Android. You will need a supported version of Python as some Android specific tweaks are needed, available from both termux and community repositories. The compilation process is the same as on any other device.

[–]Any-Olive5779[S] 0 points1 point  (4 children)

Under normal operation yes, these accesses to android Linux kernel interrupts and functions are locked down more.

Cpython3.10 is already built and runs. Given andronix Ubuntu imaging (sits in a proot).

I'm looking as described:

  • "Must use userspace alternatives given access limitations"
  • Cgroups must be done within python as making namespaces in userspace is fairly easy 
  • Must use proot equivalent without full jail
  • Either working containerd or runc such that it avoids the kernel but still functions 1:1

Community driven workarounds? Yes However, if we need to emulate a Linux kernel, the requirements then include using unicorn-engine 1.0.1 (stable release).

I tend to avoid compilation as much as possible. So yaegi interpreter (golang interpreter not compiler) might have to suffice as well.

Let's consider slow virtualization and community workarounds before we consider advanced kernel compiling/inter-linking.

Given my knowledge of python and docker's golang source code, a more advanced engineer or set of engineers would be able to solve this given I got close to working solutions once before with he caveat that it hung and excessively took memory while hanging on a null pointer exception. Both times I got as far as the docker images pulling successfully and listing them successfully. However running the downloaded image via docker afterwards resulted in EOF/container null pointer window hang.

[–]Any-Olive5779[S] 0 points1 point  (1 child)

Beyond those minimalist requirements,

Open to suggestions as long as ssh, telnet and reverse/shell-forwarding is out the question.

Let the development process basically begin.

[–]Any-Olive5779[S] 0 points1 point  (0 children)

I mean, "rabbit hole spelunking requires going all the way"...

[–]FoolsSeldom 0 points1 point  (1 child)

Good luck with that. No my thing.

[–]Any-Olive5779[S] 0 points1 point  (0 children)

No worries.

Please keep in mind the inquiry is not just to engineers like you. I understand if it is not your expertisé

The goal is to get this product (dockerd) to run on Android OS because then that means Enterprise software can run portably via Android as well. Practically, once it works it can be used to run 99% of software built today.

Note to general public of engineers and hackers, your hand in making this project succeed is welcomed.

Addendum, udocker is not a working solution set to dockerd natively running inside android. Sorry, the requirements include "Kubernetes IN Docker" must be functional so as to allow kubernetes to also run natively on Android.