CLI Reference
DSO is implemented as a native Docker CLI plugin. All interactions are performed via the docker dso command space.
Command: up
Synchronizes secrets and initializes a Docker Compose stack.
docker dso up -c dso.yaml -f docker-compose.yml -dMechanics:
- Pre-flight: Parses
dso.yamland establishes a connection to thedso-agentvia the Unix socket. - Resolution: Fetches the latest secret values from the configured provider (AWS/Azure/Vault).
- Injection: Maps secret values to the environment of services defined in
docker-compose.yml. - Execution: Calls
docker compose upwith the enriched environment.
Common Flags:
-d, --detach: Run containers in the background.-c, --config: Path to a customdso.yaml(Default:./dso.yaml).-f, --file: Path to a customdocker-compose.yml.
Command: validate
Performs a structural and connectivity check on your configuration without starting any containers.
docker dso validate -c dso.yamlMechanics:
- Schema Check: Validates the
dso.yamlsyntax against the official JSON schema. - Provider Probe: Attempts to authenticate with the cloud provider (AWS/Huawei/Vault) to verify IAM/Permissions.
- Mapping Audit: Checks if all environment variables mapped in
dso.yamlexist in the targetdocker-compose.yml.
Command: down
Stops the stack and performs a secure memory purge.
docker dso down [compose-args...]Mechanics:
- Termination: Calls
docker compose downto stop and remove containers. - Purge: Signals the
dso-agentto flush the sensitive secret cache from its process memory.
Command: fetch
Resolves and displays a specific secret (for debugging purposes).
docker dso fetch <secret-name>Usage: Use this command to verify that your host has the correct IAM permissions or API access to reach the vault before launching a full stack. Note: Secret values are masked in the terminal output to prevent "shoulder surfing" leaks.
Command: watch
Starts the Watcher Engine in foreground mode.
docker dso watchUsage: Ideal for debugging rotation strategies and SIGHUP signals. The command streams real-time reconciliation logs, showing exactly when a secret drift is detected and how the Reloader Controller responds.
Command: version
Displays the DSO binary version and build metadata.
docker dso versionGlobal Configuration Resolution
DSO resolves its configuration using the following priority:
- Explicit flag via
--config. - Environment variable
DSO_CONFIG. - Local file
./dso.yaml. - System-wide file
/etc/dso/dso.yaml.
Next Steps
- System Architecture: Learn how the CLI interacts with the Agent.
- Configuration Reference: Detailed
dso.yamlschema. - Security Model: How the CLI-to-Agent socket is protected.
