Skip to content

Commit 089bb18

Browse files
committed
feat: implement devcontainer stop and down commands
- Add 'devcontainer stop' command to stop running containers - Add 'devcontainer down' command to stop and remove containers - Support --all flag to target all devcontainers - Support --workspace-folder to target specific workspace - Support --id-label for custom label filtering - Support --remove-volumes for down command - Update README.md to mark both commands as completed - Handle both single container and Docker Compose configurations
1 parent f9e3acd commit 089bb18

File tree

2 files changed

+383
-3
lines changed

2 files changed

+383
-3
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ This CLI is in active development. Current status:
1717
- [x] `devcontainer exec` - Executes a command in a container with `userEnvProbe`, `remoteUser`, `remoteEnv`, and other properties applied
1818
- [x] `devcontainer features <...>` - Tools to assist in authoring and testing [Dev Container Features](https://containers.dev/implementors/features/)
1919
- [x] `devcontainer templates <...>` - Tools to assist in authoring and testing [Dev Container Templates](https://containers.dev/implementors/templates/)
20-
- [ ] `devcontainer stop` - Stops containers
21-
- [ ] `devcontainer down` - Stops and deletes containers
20+
- [x] `devcontainer stop` - Stops containers
21+
- [x] `devcontainer down` - Stops and deletes containers
2222

2323
## Try it out
2424

@@ -44,6 +44,8 @@ Commands:
4444
devcontainer read-configuration Read configuration
4545
devcontainer features Features commands
4646
devcontainer templates Templates commands
47+
devcontainer stop Stop dev containers
48+
devcontainer down Stop and remove dev containers
4749
devcontainer exec <cmd> [args..] Execute a command on a running dev container
4850

4951
Options:

0 commit comments

Comments
 (0)