mirror of
https://github.com/docker/cli.git
synced 2025-07-04 02:02:35 +03:00
Keep frontmatter for docker, dockerd and index markdown files. Also needs to move cli.md > docker.md before generation and then move it back because cli.md is needed for yaml generation on docs website: https://github.com/docker/cli/pull/3924#discussion_r1059986605 Signed-off-by: Kevin Alvarez <crazy-max@users.noreply.github.com> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1.4 KiB
1.4 KiB
plugin create
Create a plugin from a rootfs and configuration. Plugin data directory must contain config.json and rootfs directory.
Options
Name | Type | Default | Description |
---|---|---|---|
--compress |
Compress the context using gzip |
Description
Creates a plugin. Before creating the plugin, prepare the plugin's root filesystem as well as the config.json
Examples
The following example shows how to create a sample plugin
.
$ 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 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.