logoalt Hacker News

Run Linux containers on Android, no root required

206 pointsby politelemonlast Friday at 10:23 PM79 commentsview on HN

Comments

vimredoyesterday at 3:51 AM

I don't understand what this would be useful for. The Linux terminal app on Android (check Developer settings if you want it) already exists and it uses hardware accelerated virtualization, while this uses QEMU with TCG. The Linux terminal app also supports running a DE (No VNC - as in no VNC, not NoVNC - required!), has full shell, full root, all the features of Podroid, and hell, you could even swap out the terminal if you wanted to. The only advantage to this seems that it supports Android 14, 15, and 16. Am I missing something, or does this have no purpose?

show 12 replies
hu3yesterday at 11:36 AM

Added to my list of things that will never be possible on iOS.

show 1 reply
ike____________yesterday at 8:04 PM

Just tried it, the last 2 versions, I cannot continue after specifying the ram and cpu number.

figmertyesterday at 12:39 AM

This can probably be upstreamed into podman. Podman already has supports using a VM using podman machine (uses different tech under the hood depending on the OS). This seems like it can be yet another backend for it.

show 1 reply
anthkyesterday at 6:19 AM

Termux and a BT keyboard it's enough.

Also, native Emacs under FDroid has recently been improved a lot.

With just Emacs you get:

- An IRC, Usenet and Mail client. The ONLY libre Usenet client. comp.arch and comp.misc have really engaging discussions. You can score up nice commenters and blacklist every spammer

- Gemini and Gopher via ELPA (run Esc-x package-install RET elpher)

- A math mini CAS with Esc-x calc RET

- Esc-x package-install RET malyon, get some nice ZMachine text adventures at IFDB

- Elisp environment+cl-lib can do a lot

- Esc-x package-install jabber, Esc-x jabber. Chat with cool people at XMPP servers.

- Org-Mode, enough said

- eshell will allow you to automate stuff

- Elisp + Android related functions + org-mode: heaven.

- Sudoku, Sokoban, Tetris...

- LSP integration it's possible

Get some $10 pocket bluetooth keyboard and try it.

show 1 reply
spidermonkey23yesterday at 7:09 AM

I think this is great, I've wanted some sort of docker on android system and this does the job quite nicely all wrapped up in an apk. So there is definitely space for this in the current ecosystem. The new terminal built into android crashes whenever I try booting it up.

nullbyte808yesterday at 1:41 AM

Is it possible to get the reverse of this working? (Waydroid with play services on Linux phones, such as postmarketOS)

show 3 replies
Antitoxic6185yesterday at 2:52 AM

tmux with proot distros exist though

show 1 reply
tuananhyesterday at 5:33 AM

what about the other way around?

i'm aware about waydroid but it has too many problems with nvidia. also require wayland.

show 3 replies
Beijingeryesterday at 10:20 AM

How is it the other way around? What is the status of Waydroid?

k38fyesterday at 12:00 PM

The QEMU TCG approach makes sense for isolation, but I'm curious about the traffic routing story. Does each container get its own network namespace, or does all traffic still go through Android's network stack? The latter would mean carrier-level DPI still sees everything the container sends — which matters a lot depending on what you're running.

pjmlpyesterday at 7:58 AM

I don't see the purpose to run containers on Android, the managed userspace provides everything I need, including code on the go apps, already sandboxed.

Also not a termux fan.

show 1 reply
ilsubyeegalast Friday at 11:36 PM

curious is this just software qemu(not sure what word exactly was) instead of virtualization acceleration, probably more overheads?

show 3 replies
ggmyesterday at 1:22 AM

And local FS access is mediated how?

nixosbestosyesterday at 2:06 AM

I just want a folding portable monitor now. We're getting so close...

show 2 replies
TheRoqueyesterday at 12:32 AM

With this I could in theory do all my work from my Android phone.

ekropotinyesterday at 6:15 AM

I find the title very misleading. Linux containers typically means LXC, but when in readme you say it’s intended for running OCI-based containers.

cringleyrobertyesterday at 12:21 PM

Just because you can doesn’t mean you should.

nsonhayesterday at 7:19 AM

What would be the usecases?

unnouinceputyesterday at 1:21 PM

I want the opposite. And I want to behave like a true Android. Reason: My fucking useless bank that has a banking app that only runs on non-rooted Android only (cause fuck iOS/web according to them). My attempts to run their shitty app on emulators, virtual machines and the like failed. So currently I have a dumb phone that only has their crappy app on it and that's all. On a separate Google account, because I do not dare to link my main Google account to their name.

Any advice?

randomtoastyesterday at 8:57 AM

I find it somewhat amusing that it uses QEMU to emulate Linux in order to create a container with restricted permissions, even though it is already running on Linux with restricted permissions. I get the point while it is designed that way, but still funny.

show 1 reply
Aegis_Labsyesterday at 3:25 PM

[dead]

venyxx__tntyesterday at 1:18 PM

[flagged]

VonGuardyesterday at 5:40 AM

Podman.....