Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1.42 KB

CLI_REFERENCE.md

File metadata and controls

45 lines (31 loc) · 1.42 KB

Dockerized CLI Reference

dockerized [options] <command>[:version] [arguments]

When running dockerized from source, extra compilation options are available. See Compilation options.

Options

  • --build — Rebuild the container before running it.
  • --shell — Start a shell inside the command container. Similar to docker run --entrypoint=sh.
  • --entrypoint <entrypoint> Override the default entrypoint of the command container.
  • -p <port> — Exposes given port to host, e.g. -p 8080.
  • -p <port>:<port> — Maps host port to container port, e.g. -p 80:8080.
  • -v, --verbose — Log what dockerized is doing.
  • -h, --help — Show this help.

Version

  • :<version> — The version of the command to run, e.g. 1, 1.8, 1.8.1.
  • :?, : — List all available versions. E.g. dockerized go:?

Arguments

  • All arguments after <command> are passed to the command itself.

Compilation options

When running dockerized from source, there's an extra compilation option available. It should be the first argument.

dockerized --compile[=docker|host]
  • --compile, --compile=docker — Compile dockerized using docker.
  • --compile=host — Compile dockerized on the host, requires go 1.17+ to be installed.

Example:

# Re-compile dockerized with go and run python.
dockerized --compile=host python