mirror of https://github.com/docker/docs.git
Compose common flags --file and --project-name must be used before the subcommand (like docker-compose syntax).
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
This commit is contained in:
parent
01c72bd793
commit
47743a48f4
|
@ -147,7 +147,7 @@ Also see the [full list of compose features supported by ACI](aci-compose-featur
|
|||
|
||||
2. Run `docker compose up` and `docker compose down` to start and then stop a full Compose application.
|
||||
|
||||
By default, `docker compose up` uses the `docker-compose.yaml` file in the current folder. You can specify the working directory using the --workdir flag or specify the Compose file directly using the `--file` flag.
|
||||
By default, `docker compose up` uses the `docker-compose.yaml` file in the current folder. You can specify the working directory using the --workdir flag or specify the Compose file directly using `docker compose --file mycomposefile.yaml up`.
|
||||
|
||||
You can also specify a name for the Compose application using the `--project-name` flag during deployment. If no name is specified, a name will be derived from the working directory.
|
||||
|
||||
|
@ -161,7 +161,7 @@ Also see the [full list of compose features supported by ACI](aci-compose-featur
|
|||
|
||||
## Updating applications
|
||||
|
||||
From a deployed Compose application, you can update the application by re-deploying it with the same project name: `docker compose up --project-name PROJECT`.
|
||||
From a deployed Compose application, you can update the application by re-deploying it with the same project name: `docker compose --project-name PROJECT up`.
|
||||
|
||||
Updating an application means the ACI node will be reused, and the application will keep the same IP address that was previously allocated to expose ports, if any. ACI has some limitations on what can be updated in an existing application (you will not be able to change CPU/memory reservation for example), in these cases, you need to deploy a new application from scratch.
|
||||
|
||||
|
|
|
@ -133,8 +133,8 @@ current context using the command `docker context use myecscontext`.
|
|||
stop a full Compose application.
|
||||
|
||||
By default, `docker compose up` uses the `compose.yaml` or `docker-compose.yaml` file in
|
||||
the current folder. You can specify the Compose file directly using the
|
||||
`--file` flag.
|
||||
the current folder. You can specify the working directory using the --workdir flag or
|
||||
specify the Compose file directly using `docker compose --file mycomposefile.yaml up`.
|
||||
|
||||
You can also specify a name for the Compose application using the `--project-name` flag during deployment. If no name is specified, a name will be derived from the working directory.
|
||||
|
||||
|
@ -186,10 +186,10 @@ By default you can see logs of your compose application the same way you check l
|
|||
docker compose logs
|
||||
|
||||
# specify compose project name
|
||||
docker compose logs --project-name PROJECT
|
||||
docker compose --project-name PROJECT logs
|
||||
|
||||
# specify compose file
|
||||
docker compose logs --file /path/to/docker-compose.yaml
|
||||
docker compose --file /path/to/docker-compose.yaml logs
|
||||
```
|
||||
|
||||
A log group is created for the application as `docker-compose/<application_name>`,
|
||||
|
|
Loading…
Reference in New Issue