<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Containers on Moonstreet</title>
    <link>https://www.moonstreet.nl/tags/containers/</link>
    <description>Recent content in Containers on Moonstreet</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <copyright>Copyright © 2008–2018, Steve Francia and the Hugo Authors; all rights reserved.</copyright>
    <lastBuildDate>Sat, 28 Nov 2026 00:00:00 +0100</lastBuildDate><atom:link href="https://www.moonstreet.nl/tags/containers/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Containers refresher: PIDs, namespaces, cgroups and syscalls</title>
      <link>https://www.moonstreet.nl/post/containers-refresher/</link>
      <pubDate>Sat, 28 Nov 2026 00:00:00 +0100</pubDate>
      
      <guid>https://www.moonstreet.nl/post/containers-refresher/</guid>
      <description>
        
          
            &lt;h2 id=&#34;why-this-post&#34;&gt;Why this post&lt;/h2&gt;
&lt;p&gt;I keep forgetting how containers work at the kernel level. This is my personal
reference. Not an intro for beginners, just the stuff I need to remember.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;pids&#34;&gt;PIDs&lt;/h2&gt;
&lt;p&gt;Every process on Linux gets a &lt;strong&gt;Process ID (PID)&lt;/strong&gt;. The first process is
&lt;code&gt;systemd&lt;/code&gt; (PID 1). Everything else is a child of that.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;1&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;pstree   &lt;span class=&#34;c1&#34;&gt;# see the full process tree&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;2&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;ps aux   &lt;span class=&#34;c1&#34;&gt;# list all processes&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;When you run &lt;code&gt;npm start&lt;/code&gt; or &lt;code&gt;python main.py&lt;/code&gt;, this happens:&lt;/p&gt;
          
          
        
      </description>
    </item>
    
  </channel>
</rss>
