1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/docs/reference/commandline/plugin_create.md
Anusha Ragunathan 5b6e1bc9e5 Add plugin create functionality.
Signed-off-by: Anusha Ragunathan <anusha@docker.com>
2016-11-09 15:23:03 -08:00

1.8 KiB

title description keywords advisory
plugin create (experimental) the plugin create command description and usage plugin, create experimental
Usage:  docker plugin create [OPTIONS] reponame[:tag] PATH-TO-ROOTFS

create a plugin from the given PATH-TO-ROOTFS, which contains the plugin's root filesystem and the manifest file, manifest.json

Options:
      --compress   Compress the context using gzip 
      --help       Print usage

Creates a plugin. Before creating the plugin, prepare the plugin's root filesystem as well as the manifest.json (https://github.com/docker/docker/blob/master/docs/extend/manifest.md)

The following example shows how to create a sample plugin.


$ ls -ls /home/pluginDir

4 -rw-r--r--  1 root root 431 Nov  7 01:40 manifest.json
0 drwxr-xr-x 19 root root 420 Nov  7 01:40 rootfs

$ docker plugin create plugin /home/pluginDir
plugin

NAME                  	TAG                 DESCRIPTION                  ENABLED
plugin                  latest              A sample plugin for Docker   true

The plugin can subsequently be enabled for local use or pushed to the public registry.