okteto build

Build (and optionally push) a Docker image

Options

NameDescription
--loglevel, -l <loglevel>Amount of information outputted (debug, info, warn, error)
--output, -o <output>Output format (tty, plain, json)
--build-arg <build-arg>
  • Repeatable ♾
--cache-from <cache-from>
  • Repeatable ♾
--file, -f <file>Name of the Dockerfile (Default is 'PATH/Dockerfile')
--namespace <namespace>Namespace against which the image will be consumed. Default is the one defined at okteto context or okteto manifest
--no-cacheDo not use cache when building the image
--progress <progress>Show plain/tty build output
--secret <secret>
  • Repeatable ♾
--tag, -t <tag>Name and optionally a tag in the 'name:tag' format (it is automatically pushed)
--target <target>Set the target build stage to build
--help, -hHelp for build