-
-
Notifications
You must be signed in to change notification settings - Fork 1
wip down
Stops and removes the primary container and every sidecar.
wip down
| Mode | What runs |
|---|---|
container |
wslc remove -f <container>, then wslc remove -f <name> for each sidecar |
compose-native |
the same, across every service from compose.yml
|
compose |
<compose command> -f FILE [-p PROJECT] down |
-f forces removal of a still-running container, so there's no need to wip stop first.
Failures are non-fatal — wip works through the whole list rather than aborting on the first container that doesn't exist.
Removed by wip down? |
|
|---|---|
| Containers | yes |
| Anything written inside a container's filesystem | yes (gone with the container) |
The network:
|
no |
| Named volumes, including the sync volume | no |
| Images | no |
Networks are cheap and shared, and may be referenced by containers wip doesn't manage. Removing one
as a side effect of wip down would be surprising. Remove it yourself when you mean to:
wslc network remove app-tierThe mirror is expensive to rebuild and holds no state you'd miss deleting deliberately. wip up
re-mirrors into it anyway. To start truly clean:
wip down
wslc volume remove app-src # name from `wip config`
wip up -d- After changing
ports:,volumes:,env:,command:, orimage:— those apply at container creation, so an existing container won't pick them up. - When a container is in a state you don't want to reason about.
- Before switching branches with meaningfully different container config.
For an ordinary "done for now", wip stop is cheaper: it keeps the containers so the
next wip up is a start rather than a run.
Stop any wip up --watch loop first. Removed containers report state deleted
(4), not exited (3), so the loop won't recreate them — but a container that's mid-shutdown
can be caught in exited and restarted out from under you.
Introduction
Modes
Configuration
- Configuration Reference
- Config File Discovery
- Dependencies
- Networking
- Interactions
- Restart Policies
- Env Files
- Secret Masking
- Dockerignore
- Shadow Build Context
- Source Sync
- Sync Modes
compose.yml support
- Compose File Support
- Compose Build
- Compose Depends On
- Compose Profiles
- Compose Variable Interpolation
Commands
- CLI Command Reference
- wip init
- wip version
- wip doctor
- wip config
- wip build
- wip up
- wip stop
- wip down
- wip exec
- wip run
- wip shell
- wip logs
- wip sync
- wip dispatch
- Global Options
- Debug Output
- TTY Allocation
Guides
- Guides
- Migrating from dip
- Reusing an Existing compose.yml
- Fixing a Slow Boot
- Continuous Sync
- Auto Restarting Containers
- Multi Arch Images
- Using wip in CI
Troubleshooting
- Troubleshooting & FAQ
- FAQ
- Configuration Errors
- WSLC Not Found
- Registry Authentication
- Architecture Mismatch
- Volume Limit Reached
- rsync Not Found
- Reporting Issues
Comparison
Project