fabro/docs/public/execution/devcontainers.mdx
Fabro 0b562dadb6 fabro(01KS9BXFGAZ32SGNRE4YJV1354): implement (succeeded)
Fabro-Run: 01KS9BXFGAZ32SGNRE4YJV1354
Fabro-Completed: 7
Fabro-Checkpoint: e2b2831ff6

⚒️ Generated with [Fabro](https://fabro.sh)
2026-05-23 04:20:28 +00:00

33 lines
979 B
Text

---
title: "Devcontainers"
description: "Using repository devcontainer metadata with Fabro environments"
---
Named environments are the supported configuration surface for run execution. Define reusable environments under `[environments.<slug>]` and select one with `[run.environment] id = "..."`.
Devcontainer-specific run configuration (`[run.sandbox] devcontainer = true`) has been removed with the named environments configuration break. To use a devcontainer-style image today, build or reference it through an environment image:
```toml
[run.environment]
id = "dev"
[environments.dev]
provider = "docker"
[environments.dev.image]
ref = "ghcr.io/acme/project-devcontainer:latest"
```
For Daytona snapshot creation, provide a Dockerfile path on the selected environment:
```toml
[run.environment]
id = "cloud-dev"
[environments.cloud-dev]
provider = "daytona"
[environments.cloud-dev.image]
ref = "project-dev"
dockerfile = { path = ".devcontainer/Dockerfile" }
```