Usage
Arguments
| Argument | Required | Description |
|---|---|---|
service | Yes | Service name (as defined in dokrypt.yaml) |
command | Yes | Command to execute |
args | No | Additional command arguments |
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
-i, --interactive | bool | false | Keep stdin open |
-t, --tty | bool | false | Allocate a pseudo-TTY |
Description
Executes a command inside the container of a running service. The command runs with the container’s default user and environment. Stdout and stderr are streamed back to your terminal.Examples
Run a shell in the ethereum container
Query the latest block with cast
Check IPFS node identity
List files in a container
Interactive bash session
Errors
| Error | Cause | Solution |
|---|---|---|
Service not found | Service name doesn’t match config | Check dokrypt status for service names |
Container not running | The service is stopped | Start it with dokrypt up --service <name> |