Dev Container runtime runs each workspace in a container built from your project’s devcontainer.json. If your project already uses dev containers for VS Code or other editors, Mux can use the same configuration.Documentation Index
Fetch the complete documentation index at: https://mux-sidebar-t7ry.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Requirements
- Dev Container CLI:
npm install -g @devcontainers/cli - Docker daemon running
- A
devcontainer.jsonin the project
How it works
- Mux creates a git worktree on the host machine
- Runs
devcontainer upto build/start the container - Commands execute inside the container via
devcontainer exec - Deleting the workspace stops the container and removes the worktree
Configuration
Select Dev Container in the workspace creation UI. If your project has multiple configs, choose one from the dropdown. Mux searches these locations:.devcontainer.json.devcontainer/devcontainer.json.devcontainer/*/devcontainer.json(named configs)
Credential sharing
Like the Docker runtime, you can check “Share credentials” to enable git authentication inside the container:- SSH agent forwarding — Your SSH keys work without copying private keys
- Git config — Host
~/.gitconfigis copied into the container - GitHub CLI — If
GH_TOKENis set in project secrets, it’s passed to the container
Filesystem layout
Worktrees live on the host at~/.mux/src/<project>/<workspace>. The container mounts this directory (location inside the container depends on your devcontainer.json workspaceFolder).
Notes
- The Dev Container runtime button only appears if Mux finds a
devcontainer.jsonin the project.