Hi,
Yes, it works (both, on rooted and non-rooted devices)…
A) on rooted devices [something] like this; (FYI: Warning [!] → only for expert users; there are/might be some [kernel] bugs, you might “brick” your phone if unlucky → see the issues there and consider making some adjustments /modifications, i.e. you might need to check it and/or fix it first):
B) for non-rooted devices [in Termux; via QEMU]
(+ concerning the Proot-distro[s], usually/ under normal circumstances it should work on/in all of them [i.e. export/share env.path with/to Proot so you can run it directly from Proot, and/or you can run qemu there → nevertheless compare/consider the performance [penalty]/ overhead.
It works on non-rooted device[s] (usually)…
…The networking might be tricky [sometimes], though → read the documentation first, it took me a while to make it right)…
FYI: some “alpine docker” [or similar] image in termux is the usual way… (there are more of them on github)…
FYI2: so far I tested (briefly) this/these:
Docker (i.e. alpine docker img.) =>
[Currently running] => Portainer + Caddy+ Prometheus+ Grafana + [more/ etc.]…
(Ansible, Authelia, Traefik, etc. should also work).
…
If it is ok in Termux, it will be/should be ok in the Proot [distro(s)] as well… (use the same/similar logic, it should work)…
(Tested on: S10+, Android 12, non-rooted, i.e. phone status official).
Pro tips →
- debloat your device first,
- optimize
- find a way to secure/harden “the setup” (by default it is not sufficient there, especially Proot is “hell” concerning the security → no
web browsing/browsers via Proot recommended [yet], use Andr.app. ver. and/ or via Dex and/or share the env. path to/ with Proot and run the app from Proot → i.e. not the browser there)…
