docker template scaffold

Estimated reading time: 2 minutes

Description

Choose an application template or service template(s) and scaffold a new project

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 template scaffold application [<alias=service>...] OR scaffold [alias=]service [<[alias=]service>...]

Options

Name, shorthand Default Description
--name Application name
--org Deploy to a specific organization / docker hub user (if not specified, it will use your current hub login)
--path Deploy to a specific path
--platform linux Target platform (linux|windows)
--server Deploy to a specific registry server (host[:port])
--set , -s Override parameters values (service.name=value)

Parent command

Command Description
docker template Use templates to quickly create new services
Command Description
docker template config Modify docker template configuration
docker template inspect Inspect service templates or application templates
docker template list List available templates with their informations
docker template scaffold Choose an application template or service template(s) and scaffold a new project
docker template version Print version information

Examples

docker template scaffold react-java-mysql -s back.java=10 -s front.externalPort=80 docker template scaffold react-java-mysql java=back reactjs=front -s reactjs.externalPort=80 docker template scaffold back=spring front=react -s back.externalPort=9000 docker template scaffold react-java-mysql --server=myregistry:5000 --org=myorg