From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- ...rence%2Fcommandline%2Fplugin_create%2Findex.html | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 devdocs/docker/engine%2Freference%2Fcommandline%2Fplugin_create%2Findex.html (limited to 'devdocs/docker/engine%2Freference%2Fcommandline%2Fplugin_create%2Findex.html') diff --git a/devdocs/docker/engine%2Freference%2Fcommandline%2Fplugin_create%2Findex.html b/devdocs/docker/engine%2Freference%2Fcommandline%2Fplugin_create%2Findex.html new file mode 100644 index 00000000..2d445651 --- /dev/null +++ b/devdocs/docker/engine%2Freference%2Fcommandline%2Fplugin_create%2Findex.html @@ -0,0 +1,21 @@ +

docker plugin create


Create a plugin from a rootfs and configuration. Plugin data directory must contain config.json and rootfs directory.

Usage

$ docker plugin create [OPTIONS] PLUGIN PLUGIN-DATA-DIR
+

Refer to the options section for an overview of available OPTIONS for this command.

Description

Creates a plugin. Before creating the plugin, prepare the plugin’s root filesystem as well as the config.json

For example uses of this command, refer to the examples section below.

Options

Name, shorthand Default Description
--compress Compress the context using gzip

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.

Parent command

Command Description
docker plugin Manage plugins
Command Description
docker plugin create Create a plugin from a rootfs and configuration. Plugin data directory must contain config.json and rootfs directory.
docker plugin disable Disable a plugin
docker plugin enable Enable a plugin
docker plugin inspect Display detailed information on one or more plugins
docker plugin install Install a plugin
docker plugin ls List plugins
docker plugin push Push a plugin to a registry
docker plugin rm Remove one or more plugins
docker plugin set Change settings for a plugin
docker plugin upgrade Upgrade an existing plugin
+

+ © 2019 Docker, Inc.
Licensed under the Apache License, Version 2.0.
Docker and the Docker logo are trademarks or registered trademarks of Docker, Inc. in the United States and/or other countries.
Docker, Inc. and other parties may also have trademark rights in other terms used herein.
+ https://docs.docker.com/engine/reference/commandline/plugin_create/ +

+
-- cgit v1.2.3