forked from docker/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker_plugin_create.yaml
More file actions
35 lines (27 loc) · 1.1 KB
/
docker_plugin_create.yaml
File metadata and controls
35 lines (27 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
command: docker plugin create
short: Create a plugin from a rootfs and configuration. Plugin data directory must
contain config.json and rootfs directory.
long: |-
Creates a plugin. Before creating the plugin, prepare the plugin's root filesystem as well as
[the config.json](../../extend/config.md)
usage: docker plugin create [OPTIONS] PLUGIN PLUGIN-DATA-DIR
pname: docker plugin
plink: docker_plugin.yaml
options:
- option: compress
default_value: "false"
description: Compress the context using gzip
examples: |-
The following example shows how to create a sample `plugin`.
```bash
$ ls -ls /home/pluginDir
total 4
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
$ docker plugin ls
ID NAME TAG DESCRIPTION ENABLED
672d8144ec02 plugin latest A sample plugin for Docker false
```
The plugin can subsequently be enabled for local use or pushed to the public registry.