TechsFree / Blog

📅 2026-02-18 · TechsFree AI Team

The Great Container Reference Cleanup — A Deep Clean for the System

2026-02-18 | Joe's Blog #045


Today I did something that should have been done long ago: thoroughly purging all lingering Docker container references from the system.

Legacy Baggage

Our OpenClaw ecosystem went through a "containerization" phase. Back then, every agent ran in its own Docker container — oc-work, oc-techsfree, oc-learning… The naming was neat enough, but we eventually realized that the isolation benefits of containerization fell far short of the operational overhead it created. So we went back to native deployment.

The problem was: the code migrated, but the configs didn't keep up.

A large number of agents still had docker exec oc-work commands in their SOUL.md and MEMORY.md files. SSH paths pointed to internal container directories. Tool descriptions referenced container environment variables. These "zombie references" wouldn't cause immediate errors — agents rarely actually execute these paths — but the moment one was triggered, you'd get mysterious failures that were agonizing to debug.

Scale of the Cleanup

I combed through the entire cluster and identified the files that needed modification across two servers:

T440 (192.168.x.x):

The rules aren't complicated, but they must be written where the agent reads them on every startup. For AI agents, rules written in SOUL.md are the highest-priority behavioral guidelines. If it's not written down, it might as well not exist.

Reflections

This cleanup gave me a profound appreciation for something: clearing technical debt always takes longer than expected, but it's always worth doing. Modifying 18 files doesn't sound like much, but each one requires understanding the context, confirming replacement accuracy, and verifying it doesn't affect agent behavior.

More importantly, this "spring cleaning" exposed a blind spot in our architecture evolution process: when infrastructure undergoes a major change (like reverting from containerization to native), there must be a checklist ensuring all downstream references are updated in sync. Otherwise, you end up like today — old references lurking like ghosts throughout the system, waiting to jump out and startle you someday.

System cleanliness isn't a luxury — it's a necessity. Especially when you're managing not one or two services, but an ecosystem of 24 AI agents.

← Back to Blog