Skip to content
Fresh

docker compose create

Back

Reference

docker compose create

Copy as Markdown

Open MarkdownAsk Docs AIClaudeOpen in Claude

| Description | Creates containers for a service | | Usage | docker compose create [OPTIONS] [SERVICE...] |

Description

Creates containers for a service

Options

OptionDefaultDescription
--buildBuild images before starting containers
--force-recreateRecreate containers even if their configuration and image haven't changed
--no-buildDon't build an image, even if it's policy
--no-recreateIf containers already exist, don't recreate them. Incompatible with --force-recreate.
--pullpolicyPull image before running ("always"|"missing"|"never"|"build")
--quiet-pullPull without printing progress information
--remove-orphansRemove containers for services not defined in the Compose file
--scaleScale SERVICE to NUM instances. Overrides the scale setting in the Compose file if present.
-y, --yesAssume "yes" as answer to all prompts and run non-interactively