Create a plugin from a rootfs and configuration. Plugin data directory must contain config.json and rootfs directory.
| Name | Type | Default | Description |
|---|---|---|---|
--compress | bool | Compress the context using gzip |
Creates a plugin. Before creating the plugin, prepare the plugin's root filesystem as well as the config.json.
The following example shows how to create a sample plugin.
$ ls -ls /home/pluginDirtotal 44 -rw-r--r-- 1 root root 431 Nov 7 01:40 config.json0 drwxr-xr-x 19 root root 420 Nov 7 01:40 rootfs
$ docker plugin create plugin /home/pluginDirplugin
$ docker plugin lsID NAME DESCRIPTION ENABLED672d8144ec02 plugin:latest A sample plugin for Docker falseThe plugin can subsequently be enabled for local use or pushed to the public registry.