tugboat build
Build an image from a Dockerfile
Usage #
Options #
| Option | Default | Description |
|---|
--build-args | | Set build-time variables in a comma separated string (i.e. –build-args FOO=bar,BAR=foo) |
--context | . | Docker image build path to use |
-f, --file | Dockerfile | Name of the Dockerfile (Default is ‘PATH/Dockerfile’) |
-h, --help | | help for build |
--no-cache | | Do not use cache when building the image |
--pull | | Always attempt to pull a newer version of the image |
--push | | Push the image to a container registry after building |
-t, --tag | | Name of the image and optionally a tag in the ’name:tag’ format |
Global options available #
| Option | Default | Description |
|---|
-c, --config | | Custom path to a configuration file (optional) |
--driver | auto | The driver to use to manage containers |
--dry-run | | Output what will happen, do not execute |
--official | | Mimic the official docker publish method for images in private registries |
--registry | docker.io | The registry to use |
--registry-namespace | | The namespace in the registry to use (DockerHub username if using DockerHub, any if using private registry) |
--registry-password | | The password credential with access to the registry |
--registry-user | | The username credential with access to the registry |
See also #
- tugboat - A tool to build and publish multi-architecture container images