From 8dc88ea7b5e5b2959e72a2a167e60541652c26d9 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Wed, 6 Dec 2017 10:33:36 +0100 Subject: [PATCH] Annotate worker option for 1.35 API Signed-off-by: Nicolas De Loof --- cli/command/container/exec.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/command/container/exec.go b/cli/command/container/exec.go index c5e9004808..258f3a860a 100644 --- a/cli/command/container/exec.go +++ b/cli/command/container/exec.go @@ -58,8 +58,9 @@ func NewExecCommand(dockerCli command.Cli) *cobra.Command { flags.StringVarP(&options.user, "user", "u", "", "Username or UID (format: [:])") flags.BoolVarP(&options.privileged, "privileged", "", false, "Give extended privileges to the command") flags.VarP(&options.env, "env", "e", "Set environment variables") - flags.StringVarP(&options.workdir, "workdir", "w", "", "Working directory inside the container") flags.SetAnnotation("env", "version", []string{"1.25"}) + flags.StringVarP(&options.workdir, "workdir", "w", "", "Working directory inside the container") + flags.SetAnnotation("workdir", "version", []string{"1.35"}) return cmd }