Back to Compose

docker compose create

docs/reference/compose_create.md

5.1.31.8 KB
Original Source

docker compose create

<!---MARKER_GEN_START-->

Creates containers for a service

Options

NameTypeDefaultDescription
--buildboolBuild images before starting containers
--dry-runboolExecute command in dry run mode
--force-recreateboolRecreate containers even if their configuration and image haven't changed
--no-buildboolDon't build an image, even if it's policy
--no-recreateboolIf containers already exist, don't recreate them. Incompatible with --force-recreate.
--pullstringpolicyPull image before running ("always"|"missing"|"never"|"build")
--quiet-pullboolPull without printing progress information
--remove-orphansboolRemove containers for services not defined in the Compose file
--scalestringArrayScale SERVICE to NUM instances. Overrides the scale setting in the Compose file if present.
-y, --yesboolAssume "yes" as answer to all prompts and run non-interactively
<!---MARKER_GEN_END-->