Skip to content

Commit 6b3b9d5

Browse files
authored
Merge pull request moby#28021 from YuPengZTE/devString
Add “” for String
2 parents f424b1d + 167daf5 commit 6b3b9d5

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

cli/flags/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func (commonOpts *CommonOptions) InstallFlags(flags *pflag.FlagSet) {
5353
}
5454

5555
flags.BoolVarP(&commonOpts.Debug, "debug", "D", false, "Enable debug mode")
56-
flags.StringVarP(&commonOpts.LogLevel, "log-level", "l", "info", "Set the logging level (debug, info, warn, error, fatal)")
56+
flags.StringVarP(&commonOpts.LogLevel, "log-level", "l", "info", "Set the logging level (\"debug\", \"info\", \"warn\", \"error\", \"fatal\")")
5757
flags.BoolVar(&commonOpts.TLS, "tls", false, "Use TLS; implied by --tlsverify")
5858
flags.BoolVar(&commonOpts.TLSVerify, FlagTLSVerify, dockerTLSVerify, "Use TLS and verify the remote")
5959

contrib/completion/fish/docker.fish

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ complete -c docker -f -n '__fish_docker_no_subcommand' -l ip-forward -d 'Enable
6565
complete -c docker -f -n '__fish_docker_no_subcommand' -l ip-masq -d "Enable IP masquerading for bridge's IP range"
6666
complete -c docker -f -n '__fish_docker_no_subcommand' -l iptables -d "Enable Docker's addition of iptables rules"
6767
complete -c docker -f -n '__fish_docker_no_subcommand' -l ipv6 -d 'Enable IPv6 networking'
68-
complete -c docker -f -n '__fish_docker_no_subcommand' -s l -l log-level -d 'Set the logging level (debug, info, warn, error, fatal)'
68+
complete -c docker -f -n '__fish_docker_no_subcommand' -s l -l log-level -d 'Set the logging level ("debug", "info", "warn", "error", "fatal")'
6969
complete -c docker -f -n '__fish_docker_no_subcommand' -l label -d 'Set key=value labels to the daemon (displayed in `docker info`)'
7070
complete -c docker -f -n '__fish_docker_no_subcommand' -l mtu -d 'Set the containers network MTU'
7171
complete -c docker -f -n '__fish_docker_no_subcommand' -s p -l pidfile -d 'Path to use for daemon PID file'

docs/reference/commandline/cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Options:
3131
-D, --debug Enable debug mode
3232
--help Print usage
3333
-H, --host value Daemon socket(s) to connect to (default [])
34-
-l, --log-level string Set the logging level (debug, info, warn, error, fatal) (default "info")
34+
-l, --log-level string Set the logging level ("debug", "info", "warn", "error", "fatal") (default "info")
3535
--tls Use TLS; implied by --tlsverify
3636
--tlscacert string Trust certs signed only by this CA (default "/root/.docker/ca.pem")
3737
--tlscert string Path to TLS certificate file (default "/root/.docker/cert.pem")

docs/reference/commandline/dockerd.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Options:
6464
--label value Set key=value labels to the daemon (default [])
6565
--live-restore Enable live restore of docker when containers are still running
6666
--log-driver string Default driver for container logs (default "json-file")
67-
-l, --log-level string Set the logging level (debug, info, warn, error, fatal) (default "info")
67+
-l, --log-level string Set the logging level ("debug", "info", "warn", "error", "fatal") (default "info")
6868
--log-opt value Default log driver options for containers (default map[])
6969
--max-concurrent-downloads int Set the max concurrent downloads for each pull (default 3)
7070
--max-concurrent-uploads int Set the max concurrent uploads for each push (default 5)

0 commit comments

Comments
 (0)