File tree Expand file tree Collapse file tree 5 files changed +7
-9
lines changed
docs/reference/commandline Expand file tree Collapse file tree 5 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ func newSecretCreateCommand(dockerCli *command.DockerCli) *cobra.Command {
2525 }
2626
2727 cmd := & cobra.Command {
28- Use : "create [name ]" ,
28+ Use : "create [OPTIONS] SECRET [SECRET... ]" ,
2929 Short : "Create a secret using stdin as content" ,
3030 Args : cli .RequiresMinArgs (1 ),
3131 RunE : func (cmd * cobra.Command , args []string ) error {
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ type inspectOptions struct {
1616func newSecretInspectCommand (dockerCli * command.DockerCli ) * cobra.Command {
1717 opts := inspectOptions {}
1818 cmd := & cobra.Command {
19- Use : "inspect SECRET [SECRET]" ,
20- Short : "Inspect a secret " ,
19+ Use : "inspect [OPTIONS] SECRET [SECRET... ]" ,
20+ Short : "Display detailed information on one or more secrets " ,
2121 Args : cli .RequiresMinArgs (1 ),
2222 RunE : func (cmd * cobra.Command , args []string ) error {
2323 opts .names = args
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ func newSecretListCommand(dockerCli *command.DockerCli) *cobra.Command {
2121 opts := listOptions {}
2222
2323 cmd := & cobra.Command {
24- Use : "ls" ,
24+ Use : "ls [OPTIONS] " ,
2525 Short : "List secrets" ,
2626 Args : cli .NoArgs ,
2727 RunE : func (cmd * cobra.Command , args []string ) error {
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ type removeOptions struct {
1515
1616func newSecretRemoveCommand (dockerCli * command.DockerCli ) * cobra.Command {
1717 return & cobra.Command {
18- Use : "rm SECRET [SECRET]" ,
19- Short : "Remove a secret " ,
18+ Use : "rm SECRET [SECRET... ]" ,
19+ Short : "Remove one or more secrets " ,
2020 Args : cli .RequiresMinArgs (1 ),
2121 RunE : func (cmd * cobra.Command , args []string ) error {
2222 opts := removeOptions {
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ keywords: ["secret, create"]
1616# secret create
1717
1818``` Markdown
19- Usage: docker secret create [ NAME ]
19+ Usage: docker secret create [ OPTIONS ] SECRET
2020
2121Create a secret using stdin as content
2222Options:
@@ -76,5 +76,3 @@ $ docker secret inspect secret.json
7676* [ secret inspect] ( secret_inspect.md )
7777* [ secret ls] ( secret_ls.md )
7878* [ secret rm] ( secret_rm.md )
79-
80- <style >table tr > td :first-child { white-space : nowrap ;}</style >
You can’t perform that action at this time.
0 commit comments