Jump to content

Cli/ref/mw docker custom exec

From mediawiki.org
< Cli | ref

mw docker custom exec

[edit]

Execute a command in the main container

mw docker custom exec [flags] [command...]

Examples

[edit]
exec bash
exec -- bash --help
exec --user root bash
exec --user root -- bash --help

Options

[edit]
  -u, --user string   User to run as, defaults to current OS user uid:gid (default "0:0")

Options inherited from parent commands

[edit]
  -c, --context string   The context to use (default "default")
      --help             Help for this command
  -n, --name string      the name of the custom service file, referring to existing docker-compose.yml file in the mwdd directory prefixed with custom- (default "custom")
      --no-interaction   Do not ask any interactive questions
  -v, --verbose count    Increase output verbosity. Example: --verbose=2 or -vv

SEE ALSO

[edit]