Scroll to navigation

DOCKER-COMPOSE-CREATE(1) DOCKER-COMPOSE-CREATE(1)

NAME

docker-compose-create - Creates containers for a service

SYNOPSIS

docker compose create [OPTIONS] [SERVICE...]

DESCRIPTION

Creates containers for a service

OPTIONS

--build[=false] Build images before starting containers

--force-recreate[=false] Recreate containers even if their configuration and image haven't changed

-h, --help[=false] help for create

--no-build[=false] Don't build an image, even if it's policy

--no-recreate[=false] If containers already exist, don't recreate them. Incompatible with --force-recreate.

--pull="policy" Pull image before running ("always"|"missing"|"never"|"build")

--quiet-pull[=false] Pull without printing progress information

--remove-orphans[=false] Remove containers for services not defined in the Compose file

--scale=[] Scale SERVICE to NUM instances. Overrides the scale setting in the Compose file if present.

OPTIONS INHERITED FROM PARENT COMMANDS

--dry-run[=false] Execute command in dry run mode

SEE ALSO

docker-compose(1)

Feb 2025