mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
support src in --secret
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
(cherry picked from commit f70470b71e
)
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
This commit is contained in:
parent
234a8b9496
commit
edbe73670a
2 changed files with 2 additions and 2 deletions
|
@ -182,7 +182,7 @@ func (o *SecretOpt) Set(value string) error {
|
|||
|
||||
value := parts[1]
|
||||
switch key {
|
||||
case "source":
|
||||
case "source", "src":
|
||||
spec.source = value
|
||||
case "target":
|
||||
tDir, _ := filepath.Split(value)
|
||||
|
|
|
@ -137,7 +137,7 @@ Create a service specifying the secret, target, user/group ID and mode:
|
|||
```bash
|
||||
$ docker service create --name redis \
|
||||
--secret source=ssh-key,target=ssh \
|
||||
--secret source=app-key,target=app,uid=1000,gid=1001,mode=0400 \
|
||||
--secret src=app-key,target=app,uid=1000,gid=1001,mode=0400 \
|
||||
redis:3.0.6
|
||||
4cdgfyky7ozwh3htjfw0d12qv
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue