mirror of https://github.com/docker/docs.git
Merge pull request #7728 from siyu6974/patch-1
Update example for deprecated name
This commit is contained in:
commit
2788a53481
|
@ -2336,8 +2336,8 @@ stack. The source of the secret is either `file` or `external`.
|
|||
and will **not** be scoped with the stack name. Introduced in version 3.5
|
||||
file format.
|
||||
|
||||
In this example, `my_first_secret` is created (as
|
||||
`<stack_name>_my_first_secret)`when the stack is deployed,
|
||||
In this example, `my_first_secret` is created as
|
||||
`<stack_name>_my_first_secret `when the stack is deployed,
|
||||
and `my_second_secret` already exists in Docker.
|
||||
|
||||
```none
|
||||
|
@ -2353,10 +2353,18 @@ is different from the name that exists within the service. The following
|
|||
example modifies the previous one to use the external secret called
|
||||
`redis_secret`.
|
||||
|
||||
### Compose File v3.5 and above
|
||||
```none
|
||||
secrets:
|
||||
my_first_secret:
|
||||
file: ./secret_data
|
||||
my_second_secret:
|
||||
external: true
|
||||
name: redis_secret
|
||||
```
|
||||
|
||||
### Compose File v3.4 and under
|
||||
```none
|
||||
my_second_secret:
|
||||
external:
|
||||
name: redis_secret
|
||||
|
|
Loading…
Reference in New Issue