[Dev containers](https://containers.dev/) define your development environment as code using a `devcontainer.json` file.
Coder's Dev Containers integration uses the [`@devcontainers/cli`](https://github.com/devcontainers/cli) and [Docker](https://www.docker.com) to seamlessly build and run these containers, with management in your dashboard.
For workspaces without Docker, administrators can configure [Envbuilder](../../admin/integrations/devcontainers/envbuilder/index.md) instead, which builds the workspace image itself from your dev container configuration.
> Envbuilder is in **maintenance mode** with no new features planned.
>
> The recommended way to use dev containers in Coder is the built-in [Dev Containers Integration](../../admin/integrations/devcontainers/integration.md).
> To find the best approach for your deployment, ask in the [Coder Discord server](https://discord.gg/coder).
<!-- Separate the alerts so they render as two blocks. -->
> [!TIP]
> Nix flakes let developers and/or template administrators define environments and manage dependencies at a much deeper level, without requiring a container runtime.
>
> To use them in Coder with or without NixOS, consult the [Nix(OS)](../../admin/integrations/nix.md) page.
_Dev containers appear as sub-agents with their own apps, SSH access, and port forwarding_
- Template-defined apps, scripts, and environment variables via Terraform (see [limitations](../../admin/integrations/devcontainers/integration.md#interaction-with-devcontainerjson-customizations))
_Coder detects dev container configurations and displays them with a Start button_
If your template administrator has configured automatic startup (via the `coder_devcontainer` Terraform resource or autostart settings), your dev container will build and start automatically when the workspace starts.
The Dev Containers integration uses the `devcontainer` command from [`@devcontainers/cli`](https://github.com/devcontainers/cli) to manage containers within your Coder workspace.
- The `forwardPorts` property in `devcontainer.json` with `host:port` syntax (for example, `"db:5432"`) for Docker Compose sidecar containers is not yet supported.