Browse code

Windows: Remove --credentialspec flag

Signed-off-by: John Howard (VM) <jhoward@ntdev.microsoft.com>

John Howard (VM) authored on 2017/03/22 02:02:16
Showing 2 changed files
... ...
@@ -115,7 +115,6 @@ type containerOptions struct {
115 115
 	autoRemove         bool
116 116
 	init               bool
117 117
 	initPath           string
118
-	credentialSpec     string
119 118
 
120 119
 	Image string
121 120
 	Args  []string
... ...
@@ -188,8 +187,6 @@ func addFlags(flags *pflag.FlagSet) *containerOptions {
188 188
 	flags.BoolVar(&copts.privileged, "privileged", false, "Give extended privileges to this container")
189 189
 	flags.Var(&copts.securityOpt, "security-opt", "Security Options")
190 190
 	flags.StringVar(&copts.usernsMode, "userns", "", "User namespace to use")
191
-	flags.StringVar(&copts.credentialSpec, "credentialspec", "", "Credential spec for managed service account (Windows only)")
192
-	flags.SetAnnotation("credentialspec", "ostype", []string{"windows"})
193 191
 
194 192
 	// Network and port publishing flag
195 193
 	flags.Var(&copts.extraHosts, "add-host", "Add a custom host-to-IP mapping (host:ip)")
... ...
@@ -1522,7 +1522,6 @@ _docker_container_run_and_create() {
1522 1522
 	__docker_daemon_os_is windows && options_with_args+="
1523 1523
 		--cpu-count
1524 1524
 		--cpu-percent
1525
-		--credentialspec
1526 1525
 		--io-maxbandwidth
1527 1526
 		--io-maxiops
1528 1527
 		--isolation