canasta maintenance exec
From Canasta Wiki
canasta > maintenance > exec
canasta maintenance exec
Execute a command in a container
Synopsis
Execute an arbitrary command inside a container of a Canasta instance.
With no arguments and no --service flag, lists the running services. The default service is "web" (the MediaWiki container).
canasta maintenance exec [flags]
Examples
canasta maintenance exec -- ls /var/www/mediawiki
canasta maintenance exec -s db -- mariadb-admin ping -h localhost
Flags
| Flag | Shorthand | Description | Default | Required | Orchestrator |
|---|---|---|---|---|---|
--exec-args |
Command and arguments to execute | Both | |||
--id |
-i |
Canasta instance ID | * | Both | |
--service |
-s |
Service name (default: web) | Both | ||
--wiki |
-w |
Wiki ID | Both |
* Defaults to the Canasta instance matching the current directory, if any.
Global Flags
| Flag | Shorthand | Description | Default | Required | Orchestrator |
|---|---|---|---|---|---|
--help |
-h |
Show help message and exit | Both | ||
--verbose |
-v |
Enable verbose output | Both |