Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cli/command/secret/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
func NewSecretCommand(dockerCli command.Cli) *cobra.Command {
cmd := &cobra.Command{
Use: "secret",
Short: "Manage Docker secrets",
Short: "Manage Docker Swarm secrets",
Args: cli.NoArgs,
RunE: command.ShowHelp(dockerCli.Err()),
Annotations: map[string]string{
Expand Down
2 changes: 1 addition & 1 deletion cli/command/secret/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func newSecretCreateCommand(dockerCli command.Cli) *cobra.Command {

cmd := &cobra.Command{
Use: "create [OPTIONS] SECRET [file|-]",
Short: "Create a secret from a file or STDIN as content",
Short: "Create a Swarm secret from a file or STDIN as content",
Args: cli.RequiresRangeArgs(1, 2),
RunE: func(cmd *cobra.Command, args []string) error {
options.name = args[0]
Expand Down
2 changes: 1 addition & 1 deletion cli/command/secret/inspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func newSecretInspectCommand(dockerCli command.Cli) *cobra.Command {
opts := inspectOptions{}
cmd := &cobra.Command{
Use: "inspect [OPTIONS] SECRET [SECRET...]",
Short: "Display detailed information on one or more secrets",
Short: "Display detailed information on one or more Swarm secrets",
Args: cli.RequiresMinArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
opts.names = args
Expand Down
2 changes: 1 addition & 1 deletion cli/command/secret/ls.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func newSecretListCommand(dockerCli command.Cli) *cobra.Command {
cmd := &cobra.Command{
Use: "ls [OPTIONS]",
Aliases: []string{"list"},
Short: "List secrets",
Short: "List Swarm secrets",
Args: cli.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
return runSecretList(dockerCli, options)
Expand Down
2 changes: 1 addition & 1 deletion cli/command/secret/remove.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func newSecretRemoveCommand(dockerCli command.Cli) *cobra.Command {
return &cobra.Command{
Use: "rm SECRET [SECRET...]",
Aliases: []string{"remove"},
Short: "Remove one or more secrets",
Short: "Remove one or more Swarm secrets",
Args: cli.RequiresMinArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
opts := removeOptions{
Expand Down
12 changes: 6 additions & 6 deletions docs/reference/commandline/secret.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@ keywords: "secret"
```markdown
Usage: docker secret COMMAND

Manage Docker secrets
Manage Docker Swarm secrets

Options:
--help Print usage

Commands:
create Create a secret from a file or STDIN as content
inspect Display detailed information on one or more secrets
ls List secrets
rm Remove one or more secrets
create Create a Swarm secret from a file or STDIN as content
inspect Display detailed information on one or more Swarm secrets
ls List Swarm secrets
rm Remove one or more Swarm secrets

Run 'docker secret COMMAND --help' for more information on a command.

```

## Description

Manage secrets.
Manage Docker Swarm secrets.

## Related commands

Expand Down
2 changes: 1 addition & 1 deletion docs/reference/commandline/secret_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ keywords: ["secret, create"]
```Markdown
Usage: docker secret create [OPTIONS] SECRET [file|-]

Create a secret from a file or STDIN as content
Create a Swarm secret from a file or STDIN as content

Options:
-l, --label list Secret labels
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/commandline/secret_inspect.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ keywords: ["secret, inspect"]
```Markdown
Usage: docker secret inspect [OPTIONS] SECRET [SECRET...]

Display detailed information on one or more secrets
Display detailed information on one or more Swarm secrets

Options:
-f, --format string Format the output using the given Go template
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/commandline/secret_ls.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ keywords: ["secret, ls"]
```Markdown
Usage: docker secret ls [OPTIONS]

List secrets
List Swarm secrets

Aliases:
ls, list
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/commandline/secret_rm.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ keywords: ["secret, rm"]
```Markdown
Usage: docker secret rm SECRET [SECRET...]

Remove one or more secrets
Remove one or more Swarm secrets

Aliases:
rm, remove
Expand Down