Files
docker-cli/components/engine/docs/reference/commandline/plugin_create.md
yuexiao-wang 8013774cb8 Modify the link for config.json
Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
Upstream-commit: 4e970c1e5a2b16f9408f530037e65595810cc5d7
Component: engine
2016-11-25 18:33:04 +08:00

1.7 KiB

title, description, keywords
title description keywords
plugin create the plugin create command description and usage plugin, create

plugin create

Usage:  docker plugin create [OPTIONS] reponame[:tag] PATH-TO-ROOTFS

Create a plugin from a rootfs and configuration

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 config.json

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 config.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.