docker assemble build

Estimated reading time: 2 minutes

Description

Build a project into a container

This command is experimental.

This command is experimental on the Docker client. It should not be used in production environments. To enable experimental features in the Docker CLI, edit the config.json and set experimental to enabled.

Experimental features provide early access to future product functionality. These features are intended for testing and feedback only as they may change between releases without warning or can be removed entirely from a future release. Experimental features must not be used in production environments. Docker does not offer support for experimental features. For more information, see Experimental features.

To enable experimental features in the Docker CLI, edit the config.json file and set experimental to enabled.

To enable experimental features from the Docker Desktop menu, click Settings (Preferences on macOS) > Daemon and then select the Experimental features check box.

Usage

docker assemble build [PATH]

Options

Name, shorthand Default Description
--debug-dump-config
--debug-dump-image
--debug-dump-llb
--debug-skip-build
--frontend
--frontend-devel
--label label to write into the image as KEY=VALUE
--name build image with repository NAME (default taken from project metadata)
--namespace build image within repository NAMESPACE (default no namespace)
--option , -o set an option as OPTION=VALUE
--port port to expose from container
--progress auto set type of progress (auto, plain, tty). Use plain to show container output
--push push result to registry, not local image store
--push-insecure push result to insecure (http) registry, not local image store
--tag tag image with TAG (default taken from project metadata or “latest”)
--addr docker-container://docker-assemble-backend-root backend address

Parent command

Command Description
docker assemble assemble is a high-level build tool
Command Description
docker assemble backend Manage build backend service
docker assemble build Build a project into a container
docker assemble version Print the version number of docker assemble