security options

This commit is contained in:
2023-09-10 05:31:03 +00:00
parent 0151ea9a3f
commit a0b5a420e8
3 changed files with 39 additions and 14 deletions

View File

@@ -87,7 +87,7 @@ func runInspect(dockerCli command.Cli, in inspectOptions) error {
securityOpts = append(securityOpts, fmt.Sprintf("%s=%q", k, v))
}
if len(securityOpts) > 0 {
fmt.Fprintf(w, "Security Options:\t%s\n", strings.Join(driverOpts, " "))
fmt.Fprintf(w, "Security Options:\t%s\n", strings.Join(securityOpts, " "))
}
if err := n.Err; err != nil {