< Cli < ref

mw docker custom expose

Expose a port in a running container

mw docker custom expose [flags]

Examples

expose --external-port 8899
expose --external-port 8899 --internal-port 80

Options

  -e, --external-port string   External port to expose
  -i, --internal-port string   Internal port to expose

Options inherited from parent commands

  -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

This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.