docker compose
Define and run multi-container applications with Docker Docker Compose reference
35 commands 11 options Its page in the Docker Compose reference
Commands
alphaExperimental commandsattachAttach local standard input, output, and error streams to a service's running containerbridgeConvert compose files into another modelbuildServices are built once and then tagged, by default as project-service.commitCreate a new image from a service container's changesconfigIt merges the Compose files set by -f flags, resolves variables in the Compose file, and expands short-notation intocpCopy files/folders between a service container and the local filesystemcreateCreates containers for a servicedownStops containers and removes containers, networks, volumes, and images created by up.eventsStream container events for every container in the project.execThis is the equivalent of docker exec targeting a Compose service.exportExport a service container's filesystem as a tar archiveimagesList images used by the created containerskillForces running containers to stop by sending a SIGKILL signal.logsDisplays log output from serviceslsLists running Compose projectspausePauses running containers of a service.portList port mappings or print the public port for a specific mapping for the servicepsLists containers for a Compose project, with current status and exposed ports.publishPublish compose applicationpullPulls an image associated with a service defined in a compose.yaml file, but does not start containers based on those imagespushPushes images for services to their respective registry/repository.restartRestarts all stopped and running services, or the specified services only.rmRemoves stopped service containers.runRuns a one-time command against a service.startStarts existing containers for a servicestatsDisplay a live stream of container(s) resource usage statisticsstopStops running containers without removing them.topDisplays the running processesunpauseUnpauses paused containers of a serviceupBuilds, (re)creates, starts, and attaches to containers for a service.versionShow the Docker Compose version informationvolumesList volumeswaitBlock until containers of all (or specified) services stop.watchWatch build context for service and rebuild/refresh containers when files are updatedOptions
--all-resourcesInclude all resources, even those not used by services--ansiControl when to print ANSI control characters ("never"\--compatibilityRun compose in backward compatibility mode--dry-runExecute command in dry run mode--env-fileSpecify an alternate environment file--file, -fCompose configuration files--parallelControl max parallelism, -1 for unlimited--profileSpecify a profile to enable--progressSet type of progress output (auto, tty, plain, json, quiet)--project-directorySpecify an alternate working directory (default: the path of the, first specified, Compose file)--project-name, -pProject name