mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add options for docker plugin enable and fix some typos
Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
(cherry picked from commit 9e414bfa6b
)
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
This commit is contained in:
parent
a2c9e625e6
commit
05a75a567a
4 changed files with 4 additions and 6 deletions
|
@ -20,7 +20,7 @@ func newEnableCommand(dockerCli *command.DockerCli) *cobra.Command {
|
||||||
var opts enableOpts
|
var opts enableOpts
|
||||||
|
|
||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
Use: "enable PLUGIN",
|
Use: "enable [OPTIONS] PLUGIN",
|
||||||
Short: "Enable a plugin",
|
Short: "Enable a plugin",
|
||||||
Args: cli.ExactArgs(1),
|
Args: cli.ExactArgs(1),
|
||||||
RunE: func(cmd *cobra.Command, args []string) error {
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||||||
|
|
|
@ -26,7 +26,6 @@ Usage: docker [OPTIONS] COMMAND [ARG...]
|
||||||
A self-sufficient runtime for containers.
|
A self-sufficient runtime for containers.
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
|
|
||||||
--config string Location of client config files (default "/root/.docker")
|
--config string Location of client config files (default "/root/.docker")
|
||||||
-D, --debug Enable debug mode
|
-D, --debug Enable debug mode
|
||||||
--help Print usage
|
--help Print usage
|
||||||
|
@ -72,8 +71,8 @@ by the `docker` command line:
|
||||||
to the same URL as the registry.
|
to the same URL as the registry.
|
||||||
* `DOCKER_TMPDIR` Location for temporary Docker files.
|
* `DOCKER_TMPDIR` Location for temporary Docker files.
|
||||||
|
|
||||||
Because Docker is developed using 'Go', you can also use any environment
|
Because Docker is developed using Go, you can also use any environment
|
||||||
variables used by the 'Go' runtime. In particular, you may find these useful:
|
variables used by the Go runtime. In particular, you may find these useful:
|
||||||
|
|
||||||
* `HTTP_PROXY`
|
* `HTTP_PROXY`
|
||||||
* `HTTPS_PROXY`
|
* `HTTPS_PROXY`
|
||||||
|
|
|
@ -22,7 +22,6 @@ Usage: dockerd [OPTIONS]
|
||||||
A self-sufficient runtime for containers.
|
A self-sufficient runtime for containers.
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
|
|
||||||
--add-runtime value Register an additional OCI compatible runtime (default [])
|
--add-runtime value Register an additional OCI compatible runtime (default [])
|
||||||
--api-cors-header string Set CORS headers in the Engine API
|
--api-cors-header string Set CORS headers in the Engine API
|
||||||
--authorization-plugin value Authorization plugins to load (default [])
|
--authorization-plugin value Authorization plugins to load (default [])
|
||||||
|
|
|
@ -16,7 +16,7 @@ keywords: "plugin, enable"
|
||||||
# plugin enable
|
# plugin enable
|
||||||
|
|
||||||
```markdown
|
```markdown
|
||||||
Usage: docker plugin enable PLUGIN
|
Usage: docker plugin enable [OPTIONS] PLUGIN
|
||||||
|
|
||||||
Enable a plugin
|
Enable a plugin
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue