docker-compose
Define and run multi-container applications with Docker
Subcommands
Name | Description |
---|
build | Build or rebuild services |
config | Validate and view the Compose file |
create | Creates containers for a service |
down | Stops containers and removes containers, networks, volumes, and images |
events | Receive real time events from containers |
exec | Execute a command in a running container |
help | Get help on a command |
images | List images used by the created containers |
kill | Force stop service containers |
logs | View output from containers |
pause | Pause services |
port | Print the public port for a port binding |
ps | List containers |
pull | Pulls images for services defined in a Compose file, but does not start the containers |
push | Pushes images for services |
restart | Restart running containers |
rm | Removes stopped service containers |
run | Run a one-off command on a service |
scale | Set number of containers to run for a service |
start | Start existing containers |
stop | Stop running containers without removing them |
top | Display the running processes |
unpause | Unpause services |
up | Builds, (re)creates, starts, and attaches to containers for a service |
version | Show version information and quit |
Options
Name | Description |
---|
-f,--file <command> | Specify an alternate compose file |
-p,--project-name <command> | Specify an alternate project name |
--profile <command> | Specify a profile to enable |
-c,--context <command> | Specify a context name |
--verbose | Show more output |
--log-level <command> | Set log level (DEBUG, INFO, WARNING, ERROR, CRITICAL) |
--ansi <command> | Control when to print ANSI control characters |
--no-ansi | Do not print ANSI control characters (DEPRECATED) |
-v,--version | Print version and exit |
-H,--host <command> | Daemon socket to connect to |
--tls | Use TLS; implied by --tlsverify |
--tlscacert <command> | Trust certs signed only by this CA |
--tlscert <command> | Path to TLS certificate file |
--tlskey <command> | Path to TLS key file |
--tlsverify | Use TLS and verify the remote |
--skip-hostname-check | Don't check the daemon's hostname against the |
--project-directory <command> | Specify an alternate working directory |
--compatibility | If set, Compose will attempt to convert keys |
--env-file <command> | Specify an alternate environment file |