CLI: Down
The down command stops and removes containers via Docker Compose wrapper with automatic security hardening. It safely cleans up all resources created by a DSO deployment.
Usage
docker dso down [flags]Description
Running down will:
- Stop Services: Gracefully stops all running containers
- Remove Containers: Removes container instances
- Cleanup Secrets: Securely wipes secrets from memory
- Resource Management: Optionally removes volumes, networks, and images
- Security Hardening: Ensures no secrets remain accessible after shutdown
Flags
--volumes, -vRemove named volumes declared in the compose file
--remove-orphansRemove containers for services not defined in compose file
--rmi allRemove images
--timeout, -tTimeout for graceful shutdown (default: 10s)
Examples
Basic shutdown:
docker dso down
Remove volumes:
docker dso down -v
Clean everything:
docker dso down -v --remove-orphans --rmi all
With custom timeout:
docker dso down --timeout 30s
Security Features
- ✓Automatic secret cleanup and memory clearing
- ✓Graceful shutdown with SIGTERM/SIGKILL handling
- ✓Unmounts tmpfs filesystems