<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Containers &amp; Linux on Luther Monson</title>
    <link>https://luth.io/categories/containers/</link>
    <description>Recent content in Containers &amp; Linux on Luther Monson</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Sat, 26 Sep 2026 16:20:00 -0700</lastBuildDate>
    <atom:link href="https://luth.io/categories/containers/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Cross-Platform Process Containment: Job Objects vs Process Groups vs cgroups</title>
      <link>https://luth.io/blog/2026/09/process-containment-job-objects-process-groups-cgroups/</link>
      <pubDate>Sat, 26 Sep 2026 16:20:00 -0700</pubDate>
      <guid>https://luth.io/blog/2026/09/process-containment-job-objects-process-groups-cgroups/</guid>
      <description>&lt;p&gt;Every turn a &lt;a href=&#34;https://luth.io/blog/2026/08/shipmates-persona-based-ai-coding-crews/&#34;&gt;shipmates&lt;/a&gt; crew member takes is a subprocess. It&amp;rsquo;s&#xA;&lt;code&gt;claude&lt;/code&gt; or the &lt;code&gt;codex&lt;/code&gt; app-server. That in turn spawns shells, &lt;code&gt;go test&lt;/code&gt;, &lt;code&gt;npm&lt;/code&gt; or whatever the task calls for. Two&#xA;things have to be true about that tree. When a turn ends or gets killed, the &lt;em&gt;whole&lt;/em&gt; tree goes, including the&#xA;grandchildren. And if somebody sets a memory or CPU budget, the budget applies to the whole tree, not just the&#xA;process I happened to start.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Bind Mounts Across Mount Namespaces: Four PRs and a Container Escape</title>
      <link>https://luth.io/blog/2026/09/bind-mounts-across-mount-namespaces/</link>
      <pubDate>Thu, 24 Sep 2026 21:02:00 -0700</pubDate>
      <guid>https://luth.io/blog/2026/09/bind-mounts-across-mount-namespaces/</guid>
      <description>&lt;p&gt;GitHub Actions has a &lt;code&gt;container:&lt;/code&gt; key that runs a job&amp;rsquo;s steps inside an image of your choosing. It&amp;rsquo;s popular because&#xA;it gives you a reproducible toolchain without building a custom runner image. On a self-hosted runner it works by&#xA;having the runner drive Docker. On &lt;a href=&#34;https://luth.io/blog/2026/08/ephemerd-one-daemon-every-os/&#34;&gt;ephemerd&lt;/a&gt;, &amp;ldquo;Docker&amp;rdquo; is a shim that&#xA;speaks the Docker API and creates containers in containerd. Getting bind mounts right through that shim took four PRs&#xA;in a week. A couple of months later the version that worked turned out to be an escape.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Zero-Dependency Deployments - Single Binary for WordPress</title>
      <link>https://luth.io/blog/2026/09/single-binary-wordpress/</link>
      <pubDate>Tue, 08 Sep 2026 20:25:00 -0700</pubDate>
      <guid>https://luth.io/blog/2026/09/single-binary-wordpress/</guid>
      <description>&lt;p&gt;The standard way to run a WordPress site is four services:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;nginx for HTTP and TLS&lt;/li&gt;&#xA;&lt;li&gt;php-fpm to run PHP&lt;/li&gt;&#xA;&lt;li&gt;MySQL for data&lt;/li&gt;&#xA;&lt;li&gt;Redis, once the site gets slow enough that someone installs an object cache plugin&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;That&amp;rsquo;s four processes and four config files. There are three sockets between them and four things to upgrade. For a&#xA;big site that&amp;rsquo;s fine. For a brochure site or a staging copy it&amp;rsquo;s absurd. The same goes for a PR preview, a box at the&#xA;edge, or a CI job that needs a real WordPress to test a plugin against.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Kata Containers for CI: Boot Cost Isn&#39;t the Problem, File I/O Is</title>
      <link>https://luth.io/blog/2026/09/kata-containers-for-ci/</link>
      <pubDate>Thu, 03 Sep 2026 21:35:00 -0700</pubDate>
      <guid>https://luth.io/blog/2026/09/kata-containers-for-ci/</guid>
      <description>&lt;p&gt;Of the three platforms &lt;a href=&#34;https://luth.io/blog/2026/08/ephemerd-one-daemon-every-os/&#34;&gt;ephemerd&lt;/a&gt; runs jobs on, Linux has the weakest&#xA;isolation. Windows jobs get a Hyper-V isolated container with its own kernel. macOS jobs get a whole VM. A Linux job is&#xA;an ordinary runc container sharing the host kernel. A kernel escape from a Linux job is a host compromise.&#xA;&lt;a href=&#34;https://katacontainers.io/&#34;&gt;Kata Containers&lt;/a&gt; fixes that by putting each container in a lightweight VM with its own&#xA;kernel. It plugs into containerd as just another runtime handler. So I added it in&#xA;&lt;a href=&#34;https://github.com/ephpm/ephemerd/pull/155&#34;&gt;#155&lt;/a&gt;, measured it, and left it off by default. This post is why.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Per-Tenant Network Policy in One Process: ePHPm&#39;s eBPF Thread Tags</title>
      <link>https://luth.io/blog/2026/08/ephpm-ebpf-per-vhost-network-policy/</link>
      <pubDate>Fri, 28 Aug 2026 20:40:00 -0700</pubDate>
      <guid>https://luth.io/blog/2026/08/ephpm-ebpf-per-vhost-network-policy/</guid>
      <description>&lt;p&gt;In multi-tenant mode &lt;a href=&#34;https://github.com/ephpm/ephpm&#34;&gt;ePHPm&lt;/a&gt; serves every site in &lt;code&gt;sites_dir&lt;/code&gt; from one process. Every&#xA;tenant&amp;rsquo;s PHP runs as the same OS user on the same pool of ZTS threads. A thread that just served &lt;code&gt;blog.example&lt;/code&gt; will&#xA;serve &lt;code&gt;shop.example&lt;/code&gt; a few milliseconds later. That&amp;rsquo;s the density win. It also means the kernel has no idea which&#xA;tenant is behind a given &lt;code&gt;connect()&lt;/code&gt;. As far as Linux is concerned it&amp;rsquo;s all &lt;code&gt;ephpm-web&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Most of the isolation work in ePHPm happens above the kernel. That covers &lt;code&gt;open_basedir&lt;/code&gt;, the function denylist,&#xA;per-site databases and KV keyspaces. Network is the one place where that isn&amp;rsquo;t enough. This week we brought eBPF in&#xA;to give the kernel a per-tenant identity. It went from a roadmap doc on Wednesday morning to merged that evening&#xA;(&lt;a href=&#34;https://github.com/ephpm/ephpm/pull/413&#34;&gt;#413&lt;/a&gt;, aimed at v0.8.1). v0.8.1 never got a release because its Linux&#xA;legs failed to link. v0.8.2 shipped with the BPF object silently stubbed out. v0.8.3 was the first release that&#xA;carried it. This post covers what it enforces and what it costs. It also covers what broke on the way out the door&#xA;and what it doesn&amp;rsquo;t do.&lt;/p&gt;</description>
    </item>
    <item>
      <title>My iptables Rule Matched 0 Packets in 9.8 GB</title>
      <link>https://luth.io/blog/2026/08/iptables-rule-zero-packets/</link>
      <pubDate>Wed, 26 Aug 2026 20:30:00 -0700</pubDate>
      <guid>https://luth.io/blog/2026/08/iptables-rule-zero-packets/</guid>
      <description>&lt;p&gt;After a week of Windows firewall rules that &lt;a href=&#34;https://luth.io/blog/2026/08/windows-container-egress-firewall/&#34;&gt;listed fine and enforced nothing&lt;/a&gt;,&#xA;I went back to the Linux side of &lt;a href=&#34;https://github.com/ephpm/ephemerd&#34;&gt;ephemerd&lt;/a&gt; feeling pretty good about it. iptables is&#xA;the boring, well-understood one. Then I looked at the packet counters on a live node. I found a rule that had never&#xA;matched a packet in its life. That node had pushed 9.8 GB through the same chain.&lt;/p&gt;&#xA;&lt;h3 id=&#34;the-rules-i-thought-i-had&#34;&gt;The rules I thought I had&lt;/h3&gt;&#xA;&lt;p&gt;Job containers sit on a CNI bridge, &lt;code&gt;10.88.0.0/16&lt;/code&gt;, with the host on &lt;code&gt;10.88.0.1&lt;/code&gt;. ephemerd puts its egress policy in its&#xA;own chain, &lt;code&gt;EPHEMERD-FORWARD&lt;/code&gt;. &lt;code&gt;FORWARD&lt;/code&gt; jumps to it for anything to or from the container subnet. From a live node:&lt;/p&gt;</description>
    </item>
    <item>
      <title>ephemerd: One Daemon, a Fresh Runner Per Job, Every OS</title>
      <link>https://luth.io/blog/2026/08/ephemerd-one-daemon-every-os/</link>
      <pubDate>Tue, 18 Aug 2026 21:05:00 -0700</pubDate>
      <guid>https://luth.io/blog/2026/08/ephemerd-one-daemon-every-os/</guid>
      <description>&lt;p&gt;I have CI that needs Linux amd64, Linux arm64, Windows and macOS. GitHub-hosted runners for all four get expensive fast,&#xA;especially the arm64 and Mac minutes. Self-hosted runners fix the bill and create a different problem. A stock&#xA;&lt;code&gt;actions/runner&lt;/code&gt; on a box you own runs whatever the workflow says. It keeps whatever the last job left behind. And it&amp;rsquo;s&#xA;one fork PR away from somebody running code on your LAN.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
