Merge pull request #12670 from kerhong/patch-1

Clarify the source name of secrets and configs
This commit is contained in:
Usha Mandya 2021-04-15 15:26:56 +01:00 committed by GitHub
commit 342d0cce67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -501,7 +501,7 @@ configs:
The long syntax provides more granularity in how the config is created within The long syntax provides more granularity in how the config is created within
the service's task containers. the service's task containers.
- `source`: The name of the config as it exists in Docker. - `source`: The identifier of the config as it is defined in this configuration.
- `target`: The path and name of the file to be mounted in the service's - `target`: The path and name of the file to be mounted in the service's
task containers. Defaults to `/<source>` if not specified. task containers. Defaults to `/<source>` if not specified.
- `uid` and `gid`: The numeric UID or GID that owns the mounted config file - `uid` and `gid`: The numeric UID or GID that owns the mounted config file
@ -1778,7 +1778,7 @@ secrets:
The long syntax provides more granularity in how the secret is created within The long syntax provides more granularity in how the secret is created within
the service's task containers. the service's task containers.
- `source`: The name of the secret as it exists in Docker. - `source`: The identifier of the secret as it is defined in this configuration.
- `target`: The name of the file to be mounted in `/run/secrets/` in the - `target`: The name of the file to be mounted in `/run/secrets/` in the
service's task containers. Defaults to `source` if not specified. service's task containers. Defaults to `source` if not specified.
- `uid` and `gid`: The numeric UID or GID that owns the file within - `uid` and `gid`: The numeric UID or GID that owns the file within