ScanSkill

docker compose create

This docker compose create command is used to create containers for a service.

Syntax

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

Here,

OPTIONS:

  • —build → Build images
  • —force-recreate → Recreate containers even if their configuration and image haven’t changed.
  • —no-build → Don’t build an image even if it’s missing.
  • —no-recreate → If containers already exist, don’t create them.