Has anyone here tried this? I'm planning on giving it a shot this weekend if I get some free time.
GitHub - cyberkernelofficial/docker-in-termux: This repository contains instructions on how to install Docker in Termux, without root.
https://github.com/cyberkernelofficial/docker-in-termux
9 Comments
Atherel@lemmy.dbzer0.com · 13 pts · 323d
That's technically awesome, I just lack the imagination for a meaningful usecase.
somerandomperson@lemmy.dbzer0.com · 6 pts · 323d
You can run ARM containers on your unused android devices laying around.
Atherel@lemmy.dbzer0.com · 2 pts · 322d
With integrated UPS! Just wonder if the performance is worth it.
somerandomperson@lemmy.dbzer0.com · 4 pts · 322d
Nope, because it emulates a x86_64 CPU.
But if you root, you can install docker to android, WITHOUT emulation; so it's way better.
paper_moon@lemmy.world · 1 pts · 322d
You got any guides for running the ARM docker containers with root? I already got a rooted phone.
somerandomperson@lemmy.dbzer0.com · 7 pts · 322d
You need to patch the kernel for docker, make sure you use Magisk or KernelSU (KSU N may be supported, but likely no) and install this magisk module.
The daemon is managed by the
dockerd.servicecommand, and the main command docker is well...normal docker.(Of course, you'll need a root shell to use these commands; and you're pretty much on your own.)
CAREFUL: Running Containers in your phone will go through your battery health really quick. As with everything root; you're on your own and do this at your own risk.
paper_moon@lemmy.world · 2 pts · 322d
Appreciate it! Like others I probably won't use this in practice, but its nice to know how if I wanted to.
CCMan1701A@startrek.website · 4 pts · 323d
The steps look good. It's running Alpine. I wonder how long this takes start to helloworld.
fruitycoder@sh.itjust.works · 2 pts · 322d
Ahh neat! If it's just a VM it could be a k8s(rke2/k3s) node too then!