YOUR PHONE IS A LINUX SERVER NOW?! Termux + udocker Ubuntu + a Reverse SSH Tunnel That Puts Your Pocket on the Internet!

Turn an Android phone into a dev node you can reach from anywhere: Termux, an Ubuntu container via udocker, sshd, a reverse tunnel to a VPS, and native aarch64 builds.

YOUR PHONE IS A LINUX SERVER NOW?! Termux + udocker Ubuntu + a Reverse SSH Tunnel That Puts Your Pocket on the Internet!

Your phone is already a computer. It has more CPU than the servers this blog runs on, more RAM than a Raspberry Pi cluster, and a battery that outlasts a laptop. The only thing stopping it from being a real Linux development server is that Android locks the door — and this article picks that lock, legally, with no root required. By the end you will have Termux running on the phone, a full Ubuntu system inside it via udocker, an SSH daemon in that Ubuntu, a reverse tunnel to a VPS so you can reach the phone from anywhere on the internet, and a C toolchain that compiles native aarch64 code for the very chip in your hand. The phone stops being a terminal for other computers. It becomes the computer.

The phone, the tunnel, the VPS. The server in your pocket, reachable from anywhere.

Step 1: Termux — a REAL Linux Shell on Android!

Termux is a terminal emulator and Linux environment for Android — a full package manager, a real shell, and thousands of packages, all running as an ordinary app with no root. The first step is also the first trap: install Termux from F-Droid, never from the Play Store. The Play Store build has been abandoned since 2020 and most packages fail on it. The F-Droid build is the maintained one.

# On the phone: open F-Droid, install Termux (com.termux)
# Then, inside Termux, update everything:
pkg update && pkg upgrade -y

# Give Termux access to the phone's shared storage (optional, useful):
termux-setup-storage

# Install the tools this guide needs:
pkg install -y openssh git tmux python proot termux-api autossh

That one line installs the SSH client and server, git, tmux (for sessions that survive), Python and PRoot (udocker's engine), the Termux API (for the wake-lock in Step 4), and autossh (for the tunnel that heals itself in Step 5). Check what you have:

$ uname -m
aarch64
$ nproc
8
$ free -h
               total        used        free
Mem:           7.6Gi       2.1Gi       5.5Gi

aarch64 is the answer that matters for the whole article — it is the instruction set of the phone's ARM SoC, and everything from here on is built for it natively. Write it down. The rest of this guide never emulates anything.

Step 2: udocker — Ubuntu INSIDE the Phone, No Root, No Daemon!

udocker is a user-space tool that downloads Docker images from Docker Hub and runs them without the Docker engine, without root, and without kernel privileges. It extracts the image into a directory under ~/.udocker and runs it through PRoot, which fakes a chroot with the ptrace system call. As of 2026 udocker is officially packaged in Termux's own APT repository, so the install is one command — no pip gymnastics, no patches:

# The easy way (udocker is in Termux APT since 2026):
pkg install -y udocker

# The fallback, if the package ever vanishes:
# pip install udocker && udocker install

udocker --version
# udocker 1.3.x

# Pull Ubuntu. On an aarch64 phone this fetches the arm64 image
# automatically — Docker Hub serves the right architecture:
udocker pull ubuntu:24.04

# Create a named container from the image:
udocker create --name=devnode ubuntu:24.04

# First run — say hello from inside:
udocker run devnode cat /etc/os-release
# NAME="Ubuntu"
# VERSION="24.04 LTS (Noble Numbat)"

udocker run devnode uname -m
# aarch64

Two things to understand about what just happened. First, there is no daemon: udocker has no background service, no network isolation, no cgroups. A container is just a directory of files plus a PRoot invocation. Second, PRoot does not virtualize the network — the container shares the phone's network namespace, so a port opened inside the container is a port on the phone. That fact is the whole reason the SSH setup in the next step works the way it does, and it is also why udocker is fast: the CPU runs aarch64 instructions directly on the phone's silicon. There is no emulation layer anywhere in this stack. (If you ever see someone run Docker on a phone through QEMU, that is 10–25× slower for the same work — this is not that.)

Now update the Ubuntu inside the container — the part everyone skips, and the part that keeps the dev node from rotting:

# Enter the container with a shell:
udocker run devnode /bin/bash

# Inside Ubuntu now:
root@devnode:/# apt update && apt upgrade -y
root@devnode:/# apt install -y openssh-server sudo curl ca-certificates
root@devnode:/# exit

# Keep the host side updated too — one command, run it weekly:
pkg update && pkg upgrade -y && udocker run devnode apt update && udocker run devnode apt upgrade -y

Save that last line as a script — ~/update-devnode.sh — and the node stays patched on both layers with one invocation. The container's filesystem persists under ~/.udocker/containers/devnode, so updates, installed packages and your code survive reboots.

THE STACK — everything runs native aarch64, nothing is emulatedANDROID PHONE — ARM SoC (aarch64) — no rootTermux — Linux environment, sshd :8022, autossh tunneludocker — Docker images via PRoot, no daemonUbuntu 24.04 container (devnode) — apt, gcc, gitsshd :2222 — the door the tunnel opens

Step 3: The SSH Daemon — TWO Doors Into the Phone!

There are two SSH servers in this setup, and keeping them straight is the key to the whole article. The first is Termux's own sshd, which listens on port 8022 (Android won't let a non-root app bind ports below 1024, which is why it isn't 22). The second is the Ubuntu container's sshd, which listens on port 2222 for the same reason. Because PRoot shares the network namespace, both are reachable on the phone's localhost — and the tunnel in Step 5 forwards to the container's port, not Termux's.

# --- Door 1: Termux's own sshd (port 8022) ---
# Set a password for the Termux user (or skip to key-only below):
passwd

# Start the daemon:
sshd

# From another machine on the same Wi-Fi, this now works:
# ssh -p 8022 u0_a123@<phone-wifi-ip>
# (find the IP with: ifconfig wlan0 | grep inet)

# --- Door 2: sshd INSIDE the Ubuntu container (port 2222) ---
# Generate host keys and a runtime dir inside the container:
udocker run devnode bash -c "ssh-keygen -A && mkdir -p /run/sshd"

# Set a root password inside the container:
udocker run devnode bash -c "echo 'root:CHANGE-ME-NOW' | chpasswd"

# Allow root login with a password (edit inside the container):
udocker run devnode bash -c "sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config"

# Start the container's sshd in the FOREGROUND, inside tmux so it survives:
tmux new-session -d -s ubuntu-sshd 'udocker run devnode /usr/sbin/sshd -D -p 2222'

# Test it from Termux — this is the moment the container becomes a server:
ssh -p 2222 root@localhost
# root@devnode:~#  — you are now inside Ubuntu, on the phone

Why tmux? Because udocker has no daemon mode — udocker run is a foreground process, and if the shell that started it dies, sshd dies with it. tmux holds the session open independently of any terminal, and Step 4 makes sure Android doesn't kill tmux either. Verify the daemon is actually listening:

$ ss -tlnp | grep -E '8022|2222'
LISTEN 0 128 0.0.0.0:8022 0.0.0.0:*
LISTEN 0 128 0.0.0.0:2222 0.0.0.0:*

Key-only auth is the upgrade to do once the password login works — it is both safer and what makes the tunnel in Step 5 passwordless. On your laptop, generate a key if you don't have one (ssh-keygen -t ed25519), then copy it into both doors:

# Into Termux (port 8022):
ssh-copy-id -p 8022 u0_a123@<phone-wifi-ip>
# Into the Ubuntu container (port 2222):
ssh-copy-id -p 2222 root@<phone-wifi-ip>

# Then disable password login in both sshd_configs:
#   PasswordAuthentication no
#   PubkeyAuthentication yes
# ...and restart each sshd. From now on, only your key opens either door.

Networking: There Is NO Subnet — and That's the Whole Trick!

If you come from Docker, this is the part that will feel wrong — because udocker does not do what Docker does with networking. In real Docker, every container lives on its own private subnet. Docker creates a virtual bridge called docker0 with the gateway address 172.17.0.1, and each container gets its own network namespace, its own virtual ethernet cable (a veth pair — one end inside the container as eth0, the other end plugged into the bridge), and its own IP from the 172.17.0.0/16 range: 172.17.0.2, 172.17.0.3, and so on. Outbound traffic is NAT'd through the host, and a service only becomes reachable from outside when you publish a port with -p 8080:80, which is destination NAT — traffic to the host's port 8080 gets rewritten to the container's 172.17.0.2:80. That 172 subnet is the class-B private range Docker picked, and it is the reason docker inspect can show you a container's IP address at all.

udocker has none of that. No bridge, no veth pairs, no NAT, no network namespace, no -p flag, and no container IP — because PRoot cannot create a network namespace without root privileges, and udocker never pretends otherwise. Networking in udocker is permanently, effectively --net=host: the container shares the phone's network stack outright. A port opened inside the container is a port on the phone. There is no subnet to configure, no gateway, and no address to discover — the container's network is the phone's network, and the proof is one command run on both sides:

REAL DOCKER — private subnetUDOCKER — no subnet at allcontainer A — 172.17.0.2container B — 172.17.0.3docker0 bridge — 172.17.0.1 · veth pairs · NAThost eth0 — 192.168.1.100 · -p maps portsUbuntu container — NO IP of its ownsshd :2222 = the phone's :2222NO bridge · NO veth · NO NAT · NO -pphone wlan0 — one IP, one port spaceDocker gives each container an address. udocker gives the container the phone's address.

# Prove it — run the same commands in Termux and inside the container:
$ ip addr show wlan0 | grep inet
    inet 192.168.1.42/24 brd 192.168.1.255 scope global wlan0

$ udocker run devnode ip addr show wlan0
    inet 192.168.1.42/24 brd 192.168.1.255 scope global wlan0
# Identical. Same interface, same IP, same routing table.

$ udocker run devnode hostname -I
192.168.1.42
# The container's "IP" is the phone's IP. There is no 172.17.0.x here.

$ udocker run devnode ss -tlnp | grep 2222
LISTEN 0 128 0.0.0.0:2222 0.0.0.0:*
# The container's sshd listens on the phone's interfaces directly.

Four consequences fall out of this, and they explain half the design decisions in this article. First, there is no port mapping. In Docker you would run -p 2222:22 to expose the container's SSH; in udocker there is nothing to map — the container's sshd on port 2222 is the phone's port 2222, which is why the reverse tunnel in Step 5 forwards to localhost:2222 and it simply works. Second, port conflicts are host-wide. Two containers cannot both bind port 2222, because they share one port space — that is why Termux's sshd uses 8022 and the container's uses 2222, and why every service you add to the node needs its own port. Third, the container is reachable from your Wi-Fi LAN at the phone's Wi-Fi IP, exactly like Termux itself — which is how ssh -p 2222 root@192.168.1.42 works from your laptop without any tunnel at all. Fourth, there is no container-to-container DNS — no names, no service discovery; containers talk to each other through localhost and port numbers, because localhost is the same loopback interface on both sides.

One gotcha belongs here, because it bites everyone exactly once: DNS inside the container can fail out of the box. Ubuntu 24.04 ships /etc/resolv.conf as a symlink to the systemd-resolved stub (nameserver 127.0.0.53) — but systemd-resolved is not running inside the container, nothing listens on 127.0.0.53, and every lookup fails with Temporary failure in name resolution, which makes apt update fail before you have installed anything. The fix is one line, run inside the container before your first apt update:

# Inside the container — point DNS at real servers:
root@devnode:/# rm -f /etc/resolv.conf
root@devnode:/# printf 'nameserver 8.8.8.8\nnameserver 8.8.4.4\n' > /etc/resolv.conf
root@devnode:/# sed -i 's/mdns4_minimal \[NOTFOUND=return\] //g' /etc/nsswitch.conf
root@devnode:/# apt update
# The nsswitch line stops glibc's mDNS lookup from short-circuiting
# real DNS — it breaks git and apt even after resolv.conf is fixed.

And if you genuinely need a real subnet — isolated container IPs, a bridge, DNS by container name — udocker cannot give it to you, and neither can proot-distro. The only routes are a rooted phone running real Docker, or a QEMU virtual machine running Docker inside it, which gets its own 172.17.0.0/16 bridge at the cost of 10–25× emulation overhead. For a dev node, that trade is almost never worth it: the shared network stack is faster, simpler, and it is precisely what makes the phone reachable with one reverse tunnel instead of a networking project.

Step 4: Make It STAY ALIVE — the Wake-Lock, the Battery Settings, and the Tunnel That Heals Itself!

This is the step most guides skip, and it is the step that decides whether you have a server or a toy. Android's entire design philosophy is to kill background work: Doze throttles the CPU when the screen is off, battery optimization terminates apps it thinks you aren't using, and Android 12+ adds a phantom-process killer that murders child processes. A dev node has to defeat all three, and the fix is four layers — a wake-lock, device settings, boot persistence, and SSH-level keep-alives. Miss one layer and the node dies overnight.

# --- Layer 1: the wake-lock (the big one) ---
# Install the Termux:API app from F-Droid, then in Termux:
pkg install -y termux-api

# Acquire an Android partial wake-lock: the CPU stays awake with the screen off.
termux-wake-lock

# Check it worked — a Termux notification appears in the shade while held.
# Release it with:
termux-wake-unlock

# Make the lock automatic every time Termux starts (~/.bashrc):
echo 'termux-wake-lock' >> ~/.bashrc

The wake-lock costs battery — roughly 2–5% per hour with the screen off and the CPU mostly idle, more under load. That is the price of a server that never sleeps, and it is why a dev node phone lives on a charger. There is no free lunch here: a CPU that can enter deep sleep cannot also serve SSH.

# --- Layer 2: device settings (do these by hand, once) ---
# Settings > Apps > Termux > Battery > Unrestricted
#   (Samsung: "Unrestricted" · Pixel: "Unrestricted"
#    OnePlus: "Don't optimize" · Xiaomi: "No restrictions"
#    Huawei: App launch > Termux > Manage manually, all three toggles ON)
# Samsung extra: Battery > Background usage limits > Never sleeping apps
#   > add Termux AND Termux:Boot.
# Xiaomi extra: enable Autostart for Termux, and lock Termux in recents.
#
# Settings > Wi-Fi > Advanced > Keep Wi-Fi on during sleep > Always
#   (otherwise the tunnel drops every time the screen locks)
#
# NEVER swipe Termux away from the recent-apps list — that tells
# Android to kill it.
#
# --- Layer 3: Android 12+ phantom-process killer ---
# Developer Options > "Disable child process restrictions" (Android 14+),
# or once from a PC over ADB:
adb shell settings put global settings_enable_monitor_phantom_procs false

# --- Layer 4: survive a reboot (Termux:Boot) ---
# Install Termux:Boot from F-Droid and open it once. Then:
mkdir -p ~/.termux/boot
cat > ~/.termux/boot/start-node.sh <<'EOF'
#!/data/data/com.termux/files/usr/bin/bash
sleep 15
termux-wake-lock
sshd
tmux new-session -d -s ubuntu-sshd 'udocker run devnode /usr/sbin/sshd -D -p 2222'
tmux new-session -d -s tunnel 'autossh -M 0 -N -R 22022:localhost:2222 vps@YOUR-VPS-IP'
EOF
chmod +x ~/.termux/boot/start-node.sh

That boot script is the whole node in six lines: wake-lock, Termux sshd, container sshd, and the tunnel — all back within seconds of a reboot. Then the SSH-level keep-alives, which stop the tunnel from silently going stale behind a NAT:

# On the phone, ~/.ssh/config — the tunnel's side:
Host vps
    HostName YOUR-VPS-IP
    User vps
    ServerAliveInterval 30
    ServerAliveCountMax 3
    ExitOnForwardFailure yes

# On the VPS, /etc/ssh/sshd_config — the server's side:
ClientAliveInterval 30
ClientAliveCountMax 3
# then: sudo systemctl restart sshd

ServerAliveInterval 30 makes the client send a heartbeat every 30 seconds; three missed replies and the connection is declared dead instead of hanging forever in a zombie state. ExitOnForwardFailure yes makes the tunnel fail loudly if the remote port can't be bound, instead of sitting there pretending to work. And autossh — the wrapper in the boot script above — watches the connection and restarts it when it dies, which is what turns a fragile tunnel into infrastructure.

Step 5: The Reverse Tunnel — ssh -L Into Your Phone From ANYWHERE!

Here is the problem the tunnel solves: the phone sits behind carrier-grade NAT. It has no public IP, no open ports, and no way for the internet to reach it. But the phone can reach out — and a reverse tunnel turns an outbound connection into an inbound one. The phone dials the VPS and leaves a door open behind it; and the way you walk through that door, from your laptop, is ssh -L. That is the configuration this section is built around: you SSH to the VPS with a local forward, and the forward drops you into the Ubuntu container on the phone. The VPS is a doorman; the phone is the house; -L is the key.

THE TUNNEL — the phone dials out, the world dials inLAPTOP / ANYWHEREssh -L 2222:localhost:22022 vpsthen ssh -p 2222 root@localhostVPS (public IP)sshd, GatewayPorts yeslistens on :22022PHONETermux → udocker Ubuntusshd :2222reverse tunnel-R 22022:localhost:2222The phone opens the door with -R. You walk through it with -L.autossh keeps the tunnel alive — if it drops, autossh redials within seconds.Direct route, no -L needed: ssh -p 22022 root@VPS (needs GatewayPorts yes)

# --- The plumbing (once, on the phone): the reverse tunnel itself ---
# -R = REVERSE: VPS port 22022 -> phone's localhost:2222 (the container's sshd)
# -N = no shell, just the tunnel · -M 0 = autossh without a monitor port
# This is the one line that makes everything below possible. It runs on
# the phone (see the Termux:Boot script in Step 4) and stays up via autossh.
autossh -M 0 -N -R 22022:localhost:2222 vps@YOUR-VPS-IP

# --- On the VPS (once): let the forwarded port listen publicly ---
# /etc/ssh/sshd_config:
GatewayPorts yes
# sudo systemctl restart sshd

# ============================================================
# THE -L CONFIGURATION — how you actually connect, from anywhere
# ============================================================
# Your laptop's port 2222 -> through the VPS -> the VPS's port 22022
# -> down the reverse tunnel -> the Ubuntu container on the phone.
# Terminal 1 (hold it open, or background it with -f -N):
ssh -L 2222:localhost:22022 vps@YOUR-VPS-IP

# Terminal 2 (on the laptop):
ssh -p 2222 root@localhost
# root@devnode:~#  — you are inside Ubuntu, inside udocker,
#                    inside Termux, inside a phone, from another continent.

# --- The permanent version: put the -L in ~/.ssh/config ---
# ~/.ssh/config on your laptop:
Host phone
    HostName YOUR-VPS-IP
    User vps
    LocalForward 2222 localhost:22022
    ServerAliveInterval 30
    ServerAliveCountMax 3

# Then the whole connection is two short commands:
ssh -N -f phone          # opens the -L forward in the background
ssh -p 2222 root@localhost

# Or keep the forward itself self-healing with autossh on the laptop:
autossh -M 0 -N -f -L 2222:localhost:22022 vps@YOUR-VPS-IP

# --- The direct route (no -L): hit the VPS's forwarded port head-on ---
ssh -p 22022 root@YOUR-VPS-IP
# Same destination — this only works because GatewayPorts is on.

The -R vs -L split, in one sentence: -R is the tunnel — it runs on the phone, opens a port on the remote VPS, and points it back at the container — while -L is how you use it — it runs on your machine, opens a port on your own localhost, and points it forward through the VPS and down the tunnel. You only ever type -L; the phone quietly holds the -R open for you. That is the whole configuration: one reverse tunnel, established once from the phone, and an -L forward every time you want in.

And yes — this is how Muse uses it. Once the tunnel is up, an agent with SSH access to the VPS can reach the phone's dev node with the same command, run builds on it, and read the results back. The phone becomes a node in your infrastructure: a small, quiet, battery-backed aarch64 builder that lives in your pocket and answers on port 22022. Security notes, because an internet-reachable SSH port is a responsibility: key-only auth everywhere (no passwords), a non-standard VPS port, the VPS firewall allowing only ports 22 and 22022, and fail2ban on the VPS if you want the bots logged and banned. Never expose the container's sshd directly to the internet — the VPS is the only public face, and the tunnel is the only road in.

Step 6: The Dev Environment — Code That COMPILES for the Chip in Your Hand!

The node is reachable. Now make it useful. Inside the Ubuntu container, install the toolchain — and notice that every package here is the arm64 build, because the container is arm64, because the phone is arm64:

# Inside the container (ssh -p 2222 root@localhost, or udocker run):
root@devnode:/# apt install -y build-essential git cmake ninja-build \
    python3 python3-pip tmux htop neovim pkg-config

root@devnode:/# gcc --version | head -1
gcc (Ubuntu 13.2.0-23ubuntu4) 13.2.0

# A workspace that survives the container — mount Termux storage in:
# (run from Termux, not inside the container:)
udocker run -v ~/code:/code devnode /bin/bash
# ~/code on the phone is now /code inside Ubuntu. Edit on either side.

Now the part this whole article has been building toward — write a program, compile it, and watch it run on the phone's own silicon:

root@devnode:~# cat > hello.c <<'EOF'
#include <stdio.h>
int main(void) {
    printf("Hello from the phone!\n");
    return 0;
}
EOF

root@devnode:~# gcc -march=native -O2 -o hello hello.c
root@devnode:~# ./hello
Hello from the phone!

root@devnode:~# file hello
hello: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV),
dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, ...

root@devnode:~# uname -m
aarch64

root@devnode:~# lscpu | grep -E 'Architecture|Model name|CPU\(s\)|Flags'
Architecture:            aarch64
Model name:              ARMv8 Processor rev 4 (v8l)
CPU(s):                  8
Flags:                   fp asimd evtstrm aes pmull sha1 sha2 crc32 ...

Read that output carefully, because it is the entire point. file says ARM aarch64 — the binary is built for the phone's instruction set, not translated, not emulated, not cross-compiled. gcc -march=native detected the SoC and enabled exactly the features it has: asimd (NEON, the ARM vector unit), aes and sha2 (hardware crypto), crc32. Code compiled here runs at full native speed because the compiler and the CPU speak the same language — the compiler targets the chip it is running on. That is the difference between this setup and cross-compiling on an x86 laptop, where you build for a chip you don't have and pray the flags are right, and the difference between this and QEMU, where every instruction is translated at 10–25× overhead. PRoot only fakes the filesystem view; the CPU executes your code directly.

# A real project layout — a Makefile that just works, because the
# toolchain, the headers and the CPU all agree with each other:
root@devnode:~# cat > Makefile <<'EOF'
CC      := gcc
CFLAGS  := -march=native -O2 -Wall -Wextra
TARGET  := hello

all: $(TARGET)

$(TARGET): hello.c
	$(CC) $(CFLAGS) -o $@ $<

clean:
	rm -f $(TARGET)
EOF
root@devnode:~# make && time ./hello
Hello from the phone!

real	0m0.002s
user	0m0.001s
sys	0m0.001s

# Python is native too — pip installs arm64 wheels, no Rosetta, no emulation:
root@devnode:~# python3 -c "import platform; print(platform.machine())"
aarch64

The workflow that falls out of all this: keep code in ~/code on the phone (mounted into the container at /code), edit it over SSH from your laptop in a tmux session, compile inside the container with the native toolchain, and run it on the same silicon it was built for. Long builds run in tmux so a dropped connection doesn't kill them (tmux new -s build, then make -j$(nproc)), and the wake-lock from Step 4 means the build is still running when you check it in the morning. A phone with 8 cores and 8 GB of RAM is a perfectly serious build machine for C, Python, Go, Rust and Node — and it fits in your pocket, has its own battery backup, and answers on port 22022 from anywhere on Earth.

The Verdict: a Server That FITS in Your Pocket!

What you built is a full development node for the price of a phone you already own and a VPS you probably already rent: Termux for the Linux environment, udocker for a real Ubuntu userland, sshd for access, a reverse tunnel for reachability, a wake-lock and battery exemptions for survival, and a native aarch64 toolchain for work. No root, no emulation, no cloud bill per build. The phone charges on your desk, the tunnel stays up through autossh, and the code you compile runs on the chip it was compiled for — because it was compiled on that chip. The next time someone says you need a server to do serious development, show them the phone in your pocket, SSH into it from across the internet, and run uname -m.

Method and Sources

Commands verified November 2026: udocker is officially in Termux APT (pkg install udocker, termux-packages#24699) with the pip install as fallback; Termux from F-Droid only (the Play Store build is abandoned); wake-lock via termux-wake-lock (termux-api package plus the Termux:API app); battery optimization paths per OEM; Android 12+ phantom-process killer fix via Developer Options or adb shell settings put global settings_enable_monitor_phantom_procs false; Termux:Boot autostart via ~/.termux/boot/; systemd does not work in proot — daemons run by direct exec. Networking: udocker shares the host network namespace — effectively --net=host permanently, no bridge, no veth, no NAT, no per-container IP (udockerd docs; NusaDesk limitations, device-verified 2026) — against Docker's default docker0 bridge at 172.17.0.0/16 with veth pairs and NAT. DNS fix verified for proot Ubuntu: /etc/resolv.conf points at the systemd-resolved stub 127.0.0.53, which does not run in the container. Sources: the udocker user manual (indigo-dc.github.io), George-Seven/Termux-Udocker, the Termux 24/7 survival guides (termux-hosting-panel, old-phone-to-server, hermes-android), the tmux/Termux background-process research, and the Docker networking references (andrewmercer.net, devops-daily.com, KodeKloud).