3. User-scoped volumes and one workspace per user and team
- Status: Accepted
- Date: 2026-04
Context
Workspaces are meant to be disposable: they expire after a TTL or a period of
inactivity, and recreating one is the normal way to get a clean environment.
A developer’s files, settings and extensions must survive that. Typical
storage classes provide ReadWriteOnce volumes, which a single node can
mount.
Decision
The home volume (home-<owner>, mounted at /home/coder) and the
configuration volume (config-<owner>, mounted at /config) belong to the
user, not to the workspace. They live in the team namespace, are created with
the first workspace, are reused by the next one, and are kept when a
workspace is deleted. A user can have one workspace per team at a time. The
admin Storage page shows every volume as in-use, idle or orphaned, and
deleting a volume is always an explicit action.
Consequences
- Deleting a workspace is cheap and never loses work.
- Storage grows with the number of users, not workspaces, and unused volumes must be cleaned up deliberately.
- Because volumes are named after the user’s identity, that identity must be stable; see ADR 0012.
Later changes
The configuration volume was removed when workspace images moved to
codercom/code-server, which keeps code-server’s settings and extensions under
/home/coder: each user now has a single home volume. Homes are identified by
labels rather than by name, so an administrator can hand a restored volume to a
user; see Home volume.