atmos devcontainer remove
Use this command to permanently remove a devcontainer. This stops the container if it's running and deletes it.
Usage
atmos devcontainer remove <name> [flags]
Arguments
name- Name of the devcontainer to remove
Flags
--instance string- Instance name for this devcontainer (default:
default) --force/-f- Force removal even if the container is running
Examples
# Remove a devcontainer
atmos devcontainer remove geodesic
# Force remove a running devcontainer
atmos devcontainer remove geodesic --force
# Remove a specific instance
atmos devcontainer remove terraform --instance project-a
Behavior
- Stops the container if it's running (or immediately if
--forceis used) - Removes the container and its associated data
- Does not remove the container image (use
docker rmiorpodman rmiseparately if needed) - Does not remove named volumes (use
docker volume rmorpodman volume rmseparately if needed)
Try it out
- Install Atmos
- Try the example
Copy the example into a new directory and make it your own:
atmos init examples/devcontainer
cd devcontainer
Requires a running Podman runtime (the example selects Podman) and network access for the image. The final commands clean up the local container.
atmos devcontainer start geodesic
atmos devcontainer remove geodesic