Skip to main content

Usage

dokrypt down [flags]

Flags

FlagTypeDefaultDescription
--volumesboolfalseAlso remove Docker volumes (persistent data)
--servicestring[]allStop specific service(s) only
--timeoutduration30sMaximum time to wait for graceful shutdown

Description

Stops and removes all containers, networks, and optionally volumes associated with the current project. Also cleans up the state file at ~/.dokrypt/state/. The shutdown process:
  1. Load state — Reads the project state file to find running containers
  2. Stop containers — Sends SIGTERM, waits for graceful shutdown
  3. Remove containers — Removes stopped containers
  4. Remove network — Removes the project Docker network (only if all services stopped)
  5. Remove volumes — If --volumes is set, removes persistent data
  6. Clean state — Removes the state file

Examples

Stop everything

dokrypt down

Stop and remove all data

dokrypt down --volumes
Using --volumes permanently deletes chain state, IPFS data, and all other persistent data. This cannot be undone.

Stop a specific service

dokrypt down --service ipfs

Custom shutdown timeout

dokrypt down --timeout 60s

Errors

ErrorCauseSolution
No running stack foundNo state file existsServices may have already been stopped
Docker is not runningDocker daemon is not startedStart Docker to clean up orphaned containers