atmos devcontainer attach
Use this command to attach to a running devcontainer and get an interactive shell. If the container is not running, it will be started automatically.
Usage
atmos devcontainer attach <name> [flags]
Arguments
name- Name of the devcontainer to attach to
Flags
--instance string- Instance name for this devcontainer (default:
default)
Examples
# Attach to a devcontainer
atmos devcontainer attach geodesic
# Attach to a specific instance
atmos devcontainer attach terraform --instance project-a
Behavior
- Opens an interactive shell (
/bin/bashby default) in the container - Uses login shell (
-lflag) ifuserEnvProbeis set tologinShellorloginInteractiveShellin the devcontainer configuration - Automatically starts the container if it's not running
- Inherits your terminal size and supports full TTY features