A rootless Android app that boots Alpine Linux: run containers (Podman/Docker/LXC) and GUI desktop apps.
docs(site): open the container examples with a minimal nginx one
ExTvbda49c76727a
diff --git a/docs/guide/use-cases.html b/docs/guide/use-cases.htmlindex d567308..b619a6c 100644--- a/docs/guide/use-cases.html+++ b/docs/guide/use-cases.html@@ -54,6 +54,21 @@<h2>Self-hosting via containers</h2><p>Rootless Podman, Docker and LXC are all ready the moment the VM boots: Podman needs no daemon, and the Docker and LXC services are enabled in the default runlevel, so they start automatically. You can run any ARM64 container image from Docker Hub or GHCR.</p><p>Port forwarding rules (see <a href="networking.html">Networking & ports</a>) expose guest ports on the phone's real IP. Use a host port above 1024 for anything you expose, because an unprivileged Android app cannot bind host ports below 1024.</p>+ <p>If you have never run a container before, start with this. It serves one page and proves the whole chain works, from the container to your phone's browser:</p>+ <pre><code><span class="c"># 1. write a page for it to serve</span>+<span class="p">$</span> mkdir -p ~/site && echo '<h1>Hello from Podroid</h1>' > ~/site/index.html++<span class="c"># 2. run nginx, serving that folder on guest port 80</span>+<span class="p">$</span> podman run -d --name hello \+ -p 8080:80 \+ -v ~/site:/usr/share/nginx/html:ro \+ docker.io/library/nginx:alpine++<span class="c"># 3. check it from inside the VM</span>+<span class="p">$</span> wget -qO- http://localhost:8080</code></pre>+ <p>To open it from the phone's browser or another device, add a port forward for host port <code>8080</code> in Settings, then visit <code>http://<phone-address>:8080</code>. The <strong>Status</strong> screen lists the phone's addresses; use the one on the same network as the device you are browsing from.</p>++ <p>The same pattern scales to real services:</p><pre><code><span class="c"># Pi-hole (DNS + ad-blocking)</span><span class="p">$</span> podman run -d --name pihole \-p 8080:80 -p 5353:53/tcp \