CLI:Canasta maintenance exec
From canasta
canasta > maintenance > exec
canasta maintenance exec
Execute a command in a running container
Synopsis
Execute a command or open an interactive shell in a running container of a Canasta installation.
With no arguments and no --service flag, lists the running services. With --service (or -s) and no command, opens an interactive bash shell. With --service and a command, runs that command.
Flags (-i, -s) must come before the command. Everything after the first non-flag argument is treated as the command and its arguments.
The default service is "web" (the MediaWiki container).
canasta maintenance exec [flags] [command ...]
Examples
# List running services canasta maintenance exec -i myinstance # Open a shell in the web container canasta maintenance exec -i myinstance -s web # Run a command in the web container canasta maintenance exec -i myinstance -s web ls /var/www # Default service is "web", so this also works canasta maintenance exec -i myinstance php -v
Flags
| Flag | Shorthand | Description | Default | Required |
|---|---|---|---|---|
--help |
-h |
help for exec | ||
--service |
-s |
Service name | web | |
--id |
-i |
Canasta instance ID | instance associated with current directory | |
--verbose |
-v |
Verbose output |