Skip to content

Commit 49771ba

Browse files
authored
ENGDOCS-2944 (#23311)
<!--Delete sections as needed --> ## Description Fixes #23160 Fixes #23051 ## Related issues or tickets <!-- Related issues, pull requests, or Jira tickets --> ## Reviews <!-- Notes for reviewers here --> <!-- List applicable reviews (optionally @tag reviewers) --> - [ ] Technical review - [ ] Editorial review - [ ] Product review
1 parent 0d624c8 commit 49771ba

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

content/manuals/compose/how-tos/use-secrets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ In the advanced example above:
8484
8585
- The `secrets` attribute under each service defines the secrets you want to inject into the specific container.
8686
- The top-level `secrets` section defines the variables `db_password` and `db_root_password` and provides the `file` that populates their values.
87-
- The deployment of each container means Docker creates a temporary filesystem mount under `/run/secrets/<secret_name>` with their specific values.
87+
- The deployment of each container means Docker creates a bind mount under `/run/secrets/<secret_name>` with their specific values.
8888

8989
> [!NOTE]
9090
>

content/reference/compose-file/build.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ services:
4949
5050
When used to build service images from source, the Compose file creates three Docker images:
5151
52-
* `example/webapp`: A Docker image is built using `webapp` sub-directory, within the Compose file's parent folder, as the Docker build context. Lack of a `Dockerfile` within this folder returns an error.
53-
* `example/database`: A Docker image is built using `backend` sub-directory within the Compose file parent folder. `backend.Dockerfile` file is used to define build steps, this file is searched relative to the context path, which means `..` resolves to the Compose file's parent folder, so `backend.Dockerfile` is a sibling file.
52+
* `example/webapp`: A Docker image is built using `webapp` sub-directory, within the Compose file's folder, as the Docker build context. Lack of a `Dockerfile` within this folder returns an error.
53+
* `example/database`: A Docker image is built using `backend` sub-directory within the Compose file's folder. `backend.Dockerfile` file is used to define build steps, this file is searched relative to the context path, which means `..` resolves to the Compose file's folder, so `backend.Dockerfile` is a sibling file.
5454
* A Docker image is built using the `custom` directory with the user's `$HOME` as the Docker context. Compose displays a warning about the non-portable path used to build image.
5555

5656
On push, both `example/webapp` and `example/database` Docker images are pushed to the default registry. The `custom` service image is skipped as no `image` attribute is set and Compose displays a warning about this missing attribute.
@@ -61,7 +61,7 @@ The `build` subsection defines configuration options that are applied by Compose
6161
`build` can be specified either as a string containing a path to the build context or as a detailed structure:
6262

6363
Using the string syntax, only the build context can be configured as either:
64-
- A relative path to the Compose file's parent folder. This path must be a directory and must contain a `Dockerfile`
64+
- A relative path to the Compose file's folder. This path must be a directory and must contain a `Dockerfile`
6565

6666
```yml
6767
services:

0 commit comments

Comments
 (0)