Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/admin/server-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,16 @@ sudo tee /etc/docker/daemon.json > /dev/null <<'EOF'
}
EOF

# Configure containerd to use /data as well.
# containerd runs as a separate daemon from Docker and has its own data root
# (default: /var/lib/containerd). Without this, /var fills up with image snapshots.
sudo mkdir -p /etc/containerd
containerd config default | sudo tee /etc/containerd/config.toml > /dev/null
sudo sed -i 's|^root = .*|root = "/data/containerd"|' /etc/containerd/config.toml

# Verify
docker --version
sudo systemctl enable --now containerd
sudo systemctl enable --now docker
```

Expand Down
14 changes: 14 additions & 0 deletions docs/admin/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,20 @@ du -sh /coder-workspaces/* | sort -h
# Delete unused workspaces
```

**/var partition full (containerd not in /data):**

containerd runs as a daemon separate from Docker and has its own data root (`/var/lib/containerd` by default). If the server was set up without configuring containerd's root, image snapshots accumulate in `/var` rather than `/data`. Fix:

```bash
sudo systemctl stop docker containerd
sudo mv /var/lib/containerd /data/containerd
sudo sed -i 's|^root = .*|root = "/data/containerd"|' /etc/containerd/config.toml
sudo systemctl start containerd && sudo systemctl start docker
docker ps # verify healthy
```

New server setups should configure containerd's root during initial setup — see `server-setup.md`.

## Getting Help

### Information to Collect
Expand Down