github.com/olljanat/moby@v1.13.1/docs/reference/commandline/plugin_create.md (about)

     1  ---
     2  title: "plugin create"
     3  description: "the plugin create command description and usage"
     4  keywords: "plugin, create"
     5  ---
     6  
     7  <!-- This file is maintained within the docker/docker Github
     8       repository at https://github.com/docker/docker/. Make all
     9       pull requests against that repo. If you see this file in
    10       another repository, consider it read-only there, as it will
    11       periodically be overwritten by the definitive file. Pull
    12       requests which include edits to this file in other repositories
    13       will be rejected.
    14  -->
    15  
    16  # plugin create
    17  
    18  ```markdown
    19  Usage:  docker plugin create [OPTIONS] PLUGIN PLUGIN-DATA-DIR
    20  
    21  Create a plugin from a rootfs and configuration. Plugin data directory must contain config.json and rootfs directory.
    22  
    23  Options:
    24        --compress   Compress the context using gzip 
    25        --help       Print usage
    26  ```
    27  
    28  Creates a plugin. Before creating the plugin, prepare the plugin's root filesystem as well as
    29  [the config.json](../../extend/config.md)
    30  
    31  
    32  The following example shows how to create a sample `plugin`.
    33  
    34  ```bash
    35  
    36  $ ls -ls /home/pluginDir
    37  
    38  4 -rw-r--r--  1 root root 431 Nov  7 01:40 config.json
    39  0 drwxr-xr-x 19 root root 420 Nov  7 01:40 rootfs
    40  
    41  $ docker plugin create plugin /home/pluginDir
    42  plugin
    43  
    44  NAME                  	TAG                 DESCRIPTION                  ENABLED
    45  plugin                  latest              A sample plugin for Docker   true
    46  ```
    47  
    48  The plugin can subsequently be enabled for local use or pushed to the public registry.
    49  
    50  ## Related information
    51  
    52  * [plugin disable](plugin_disable.md)
    53  * [plugin enable](plugin_enable.md)
    54  * [plugin inspect](plugin_inspect.md)
    55  * [plugin install](plugin_install.md)
    56  * [plugin ls](plugin_ls.md)
    57  * [plugin push](plugin_push.md)
    58  * [plugin rm](plugin_rm.md)
    59  * [plugin set](plugin_set.md)
    60  * [plugin upgrade](plugin_upgrade.md)