mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #28780 from vieux/accept_src_in_secret
support src in --secret
This commit is contained in:
commit
ce0068ed04
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…
Add table
Reference in a new issue