docker-compose
Define and run multi-container applications with Docker
Subcommands
Name | Description |
---|---|
build | Build or rebuild services |
config, convert | Converts the compose file to platform's canonical format |
cp | Copy files/folders between a service container and the local filesystem |
create | Creates containers for a service |
down | Stop and remove containers, networks |
events | Receive real time events from containers |
exec | Execute a command in a running container |
images | List images used by the created containers |
kill | Force stop service containers |
logs | View output from containers |
ls | List running compose projects |
pause | Pause services |
port | Print the public port for a port binding |
ps | List containers |
pull | Pull service images |
push | Push service images |
restart | Restart containers |
rm | Removes stopped service containers |
run | Run a one-off command on a service |
start | Start services |
stop | Stop services |
top | Display the running processes |
unpause | Unpause services |
up | Create and start containers |
version | Show the Docker Compose version information |
Options
Name | Description |
---|---|
--ansi <ansi> | Control when to print ANSI control characters ("never"|"always"|"auto") |
--compatibility | Run compose in backward compatibility mode |
--env-file <env-file> | Specify an alternate environment file |
--file, -f <file> |
|
--no-ansi | Do not print ANSI control characters (DEPRECATED) |
--profile <profile> |
|
--project-directory <project-directory> | Specify an alternate working directory (default: the path of the, first specified, Compose file) |
--project-name, -p <project-name> | Project name |
--verbose | Show more output |
--workdir <workdir> | DEPRECATED! USE --project-directory INSTEAD. Specify an alternate working directory (default: the path of the, first specified, Compose file) |