GitHub - cyberkernelofficial/docker-in-termux: This repository contains instructions on how to install Docker in Termux, without root. (github.com)
from WhiteOakBayou@lemmy.world to selfhosted@lemmy.world on 10 Oct 00:36
https://lemmy.world/post/37134463

Has anyone here tried this? I’m planning on giving it a shot this weekend if I get some free time.

#selfhosted

threaded - newest

CCMan1701A@startrek.website on 10 Oct 08:11 next collapse

The steps look good. It’s running Alpine. I wonder how long this takes start to helloworld.

Atherel@lemmy.dbzer0.com on 10 Oct 08:12 next collapse

That’s technically awesome, I just lack the imagination for a meaningful usecase.

somerandomperson@lemmy.dbzer0.com on 10 Oct 11:21 collapse

You can run ARM containers on your unused android devices laying around.

Atherel@lemmy.dbzer0.com on 10 Oct 15:47 collapse

With integrated UPS! Just wonder if the performance is worth it.

somerandomperson@lemmy.dbzer0.com on 10 Oct 18:09 collapse

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 on 10 Oct 20:14 collapse

You got any guides for running the ARM docker containers with root? I already got a rooted phone.

somerandomperson@lemmy.dbzer0.com on 10 Oct 20:58 collapse

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.service command, 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 on 10 Oct 21:23 collapse

Appreciate it! Like others I probably won’t use this in practice, but its nice to know how if I wanted to.

fruitycoder@sh.itjust.works on 10 Oct 15:26 collapse

Ahh neat! If it’s just a VM it could be a k8s(rke2/k3s) node too then!