Merge pull request #28780 from vieux/accept_src_in_secret

support src in --secret
Upstream-commit: ce0068ed0483bd87dc4af1e7388d9b9a91431424
Component: engine
This commit is contained in:
Antonio Murdaca
2016-11-26 14:34:30 +01:00
committed by GitHub
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
```