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:

  1. Stop Services: Gracefully stops all running containers
  2. Remove Containers: Removes container instances
  3. Cleanup Secrets: Securely wipes secrets from memory
  4. Resource Management: Optionally removes volumes, networks, and images
  5. Security Hardening: Ensures no secrets remain accessible after shutdown

Flags

--volumes, -v

Remove named volumes declared in the compose file

--remove-orphans

Remove containers for services not defined in compose file

--rmi all

Remove images

--timeout, -t

Timeout 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

Related Commands