tugboat build

Build an image from a Dockerfile

Usage

tugboat build [flags]

Options

OptionDefaultDescription
--build-argsSet build-time variables in a comma separated string (i.e. –build-args FOO=bar,BAR=foo)
--context.Docker image build path to use
-f, --fileDockerfileName of the Dockerfile (Default is ‘PATH/Dockerfile’)
-h, --helphelp for build
--no-cacheDo not use cache when building the image
--pullAlways attempt to pull a newer version of the image
--pushPush the image to a container registry after building
-t, --tagName of the image and optionally a tag in the ’name:tag’ format

Global options available

OptionDefaultDescription
-c, --configCustom path to a configuration file (optional)
--driverautoThe driver to use to manage containers
--dry-runOutput what will happen, do not execute
--officialMimic the official docker publish method for images in private registries
--registrydocker.ioThe registry to use
--registry-namespaceThe namespace in the registry to use (DockerHub username if using DockerHub, any if using private registry)
--registry-passwordThe password credential with access to the registry
--registry-userThe username credential with access to the registry

See also

  • tugboat - A tool to build and publish multi-architecture container images