1
0
Fork 0
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:
Victor Vieux 2016-11-23 14:30:57 -08:00
parent 234a8b9496
commit edbe73670a
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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
```