---
title: "Phases: Git for container filesystems, or, what I built after leaving CNCF buildpacks.io"
description: "Phases is a new image-build and persistence feature for Teleport's Beams agentic runtime that gives container filesystems a Git-like model: snapshot phases persist forkable /home state, rebuild phases rerun commands on a timer (every 24 hours by default), and copy phases overlay fixed files, composable in any order."
url: "https://swe.quest/articles/phases-git-for-container-filesystems-or-what-i-built-after-leaving-cncf-c164a7a62518bc4a"
canonical: "https://goteleport.com/blog/phases-git-for-container-filesystems/"
source: "Teleport"
published: "2026-11-10"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 10
tags: ["containers","build-systems","ai-agents","linux","virtualization"]
---

# Phases: Git for container filesystems, or, what I built after leaving CNCF buildpacks.io

A post on [Teleport](https://swe.quest/sources/teleport.md), published 2026-11-10, 10 min read, Announcement. Original: [https://goteleport.com/blog/phases-git-for-container-filesystems/](https://goteleport.com/blog/phases-git-for-container-filesystems/)

## Summary

Phases is a new image-build and persistence feature for Teleport's Beams agentic runtime that gives container filesystems a Git-like model: snapshot phases persist forkable /home state, rebuild phases rerun commands on a timer (every 24 hours by default), and copy phases overlay fixed files, composable in any order. Upstream changes trigger downstream rebuilds, while snapshot and copy layers are restitched via registry metadata rebasing, an idea carried over from Cloud Native Buildpacks. Under the hood, a privileged builder container receives the user container's mount namespace over SCM\_RIGHTS, mounts OverlayFS and pivot\_roots into it, and freezes the cgroup to capture snapshots. Layers and manifests are manipulated directly on the registry with go-containerregistry.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Containers](https://swe.quest/tags/containers.md) (Infrastructure)
- [Build systems](https://swe.quest/tags/build-systems.md) (Engineering practices)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Linux](https://swe.quest/tags/linux.md) (Infrastructure)
- [Virtualization](https://swe.quest/tags/virtualization.md) (Infrastructure)

## Prerequisites

- container image layers
- OverlayFS basics
- Dockerfile builds

## Keywords

Teleport Beams, Phases, Cloud Native Buildpacks, Kata Containers, Cloud Hypervisor, OverlayFS, go-containerregistry, beam-init

## Related posts

- [Speeding up Deployments with Lazy Image Streaming](https://swe.quest/articles/speeding-up-deployments-with-lazy-image-streaming-e38be965e3d7f740.md): Replit · 2023-09-06 · Medium · 8 min read · Containers, Performance engineering, Linux, Deployment, Storage systems
  Replit cut cold-boot times for large Deployment container images from 3-4 minutes to under 30 seconds by lazily streaming images through a FUSE filesystem instead of pulling and unpacking every layer up front.
- [Container Use for Locally Sandboxed, Background Agents in Zed](https://swe.quest/articles/container-use-for-locally-sandboxed-background-agents-in-zed-256d62989b0aa880.md): Zed · 2025-07-30 · Medium · 3 min read · AI agents, AI for coding, Sandboxing & isolation, Containers, Developer tools
  Container Use, an open source MCP tool, gives coding agents isolated sandboxes by pairing Dagger containers with Git worktrees, so background agents can work in parallel on the same repo without touching local files.
- [Directory Snapshots: Resumable project state for Sandboxes](https://swe.quest/articles/directory-snapshots-resumable-project-state-for-sandboxes-13d39562cbeec9ee.md): Modal · 2026-02-24 · Medium · 5 min read · Sandboxing & isolation, Containers, Storage systems, AI agents
  Modal's Directory Snapshots, now in public beta, capture a single directory from a running Sandbox and mount it into another Sandbox independently of the base image, instead of snapshotting the whole filesystem as one unit.
- [AgentFS with copy-on-write overlay filesystem](https://swe.quest/articles/agentfs-with-copy-on-write-overlay-filesystem-c1809b9cbbc5773b.md): Turso · 2025-12-31 · Medium · 5 min read · Sandboxing & isolation, AI agents, Storage systems, Linux, SQLite
  AgentFS 0.4 adds \`agentfs run\`, which launches a coding agent in a sandbox where the working directory is a copy-on-write overlay.
- [Docker Bake is Now Generally Available in Docker Desktop 4.38!](https://swe.quest/articles/docker-bake-is-now-generally-available-in-docker-desktop-4-38-c91e7ae722493381.md): Docker · 2025-02-05 · Medium · 9 min read · Containers, Build systems, CI/CD
  Docker Bake, a declarative build orchestration tool for BuildKit, is now generally available in Docker Desktop 4.38.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
