From f70470b71e519012e91137a2512f40d5bb8d18af Mon Sep 17 00:00:00 2001 From: Victor Vieux Date: Wed, 23 Nov 2016 14:30:57 -0800 Subject: [PATCH] support src in --secret Signed-off-by: Victor Vieux --- cli/command/service/opts.go | 2 +- docs/reference/commandline/service_create.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/command/service/opts.go b/cli/command/service/opts.go index 90d0f99249..92e00ce41c 100644 --- a/cli/command/service/opts.go +++ b/cli/command/service/opts.go @@ -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) diff --git a/docs/reference/commandline/service_create.md b/docs/reference/commandline/service_create.md index f514efe7f5..23177f9f14 100644 --- a/docs/reference/commandline/service_create.md +++ b/docs/reference/commandline/service_create.md @@ -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 ```