<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Lewen Zheng</title>
    <description>The latest articles on Forem by Lewen Zheng (@rockmzz).</description>
    <link>https://forem.com/rockmzz</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3816415%2F4cf9a8f0-2286-4b65-b9fd-2b9d2efa8343.jpg</url>
      <title>Forem: Lewen Zheng</title>
      <link>https://forem.com/rockmzz</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/rockmzz"/>
    <language>en</language>
    <item>
      <title>Agent = Docker Container: A mental model that simplified everything in my agent infra project</title>
      <dc:creator>Lewen Zheng</dc:creator>
      <pubDate>Wed, 18 Mar 2026 01:22:55 +0000</pubDate>
      <link>https://forem.com/rockmzz/agent-docker-container-a-mental-model-that-simplified-everything-in-my-agent-infra-project-l3i</link>
      <guid>https://forem.com/rockmzz/agent-docker-container-a-mental-model-that-simplified-everything-in-my-agent-infra-project-l3i</guid>
      <description>&lt;h1&gt;
  
  
  Agent = Docker Container: A mental model that simplified everything in my agent infra project
&lt;/h1&gt;

&lt;p&gt;As an AI algorithm researcher and engineer, I recently started building infrastructure for next-gen agents and agentic systems. The water is &lt;em&gt;much&lt;/em&gt; deeper than I originally expected. Here's one insight worth sharing: &lt;strong&gt;agent export/import&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;I initially built on &lt;a href="https://github.com/openclaw/openclaw" rel="noopener noreferrer"&gt;OpenClaw&lt;/a&gt;, where the "workspace" felt like a natural unit for agent export/import. But as development progressed, hard questions emerged:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How do you let users curate public data from private data before exporting?&lt;/li&gt;
&lt;li&gt;Given a workspace, how do you import it into a new environment with the agent's functionality intact?&lt;/li&gt;
&lt;li&gt;What about secrets, API keys, and environment-specific configs?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These became significant blockers.&lt;/p&gt;

&lt;p&gt;Then a few days ago, my team started building agent architectures &lt;em&gt;parallel&lt;/em&gt; to OpenClaw — and it hit me: &lt;strong&gt;in the future, everyone will build their own agent runtime.&lt;/strong&gt; OpenClaw is great, but it's not the only destination. So why couple my infrastructure to one runtime?&lt;/p&gt;

&lt;p&gt;I pivoted to building an abstraction layer — infrastructure that's &lt;strong&gt;agnostic of the agent runtime&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;And that's when a powerful mental model clicked:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Agent = Docker container&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Agent export = &lt;code&gt;docker commit&lt;/code&gt; + &lt;code&gt;docker push&lt;/code&gt;&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Agent import = &lt;code&gt;docker pull&lt;/code&gt; + &lt;code&gt;docker run&lt;/code&gt;&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Agent inventory = Docker registry&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Simple. No need to reinvent the wheel. Docker already solved packaging, versioning, distribution, and isolation decades ago. An agent is just a container with a personality.&lt;/p&gt;

&lt;p&gt;This reframing unlocked everything — marketplace, versioning, rollback, multi-runtime support — all using battle-tested container tooling.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;My question to this community:&lt;/strong&gt; What do you think is the right abstraction model for agents? Is "agent = container" too simplistic, or is that exactly the kind of primitive we need?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>architecture</category>
      <category>startup</category>
      <category>docker</category>
    </item>
  </channel>
</rss>
