github.com/flavio/docker@v0.1.3-0.20170117145210-f63d1a6eec47/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 $ docker plugin ls 45 ID NAME TAG DESCRIPTION ENABLED 46 672d8144ec02 plugin latest A sample plugin for Docker false 47 ``` 48 49 The plugin can subsequently be enabled for local use or pushed to the public registry. 50 51 ## Related information 52 53 * [plugin disable](plugin_disable.md) 54 * [plugin enable](plugin_enable.md) 55 * [plugin inspect](plugin_inspect.md) 56 * [plugin install](plugin_install.md) 57 * [plugin ls](plugin_ls.md) 58 * [plugin push](plugin_push.md) 59 * [plugin rm](plugin_rm.md) 60 * [plugin set](plugin_set.md)