-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Removed EOL Flocker plugin reference from plugin documentations. #6804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,12 +45,13 @@ spec files can be located either under `/etc/docker/plugins` or `/usr/lib/docker | |
|
|
||
| The name of the file (excluding the extension) determines the plugin name. | ||
|
|
||
| For example, the `flocker` plugin might create a Unix socket at | ||
| `/run/docker/plugins/flocker.sock`. | ||
| For example, a plugin named `VolumeDriver` might create a Unix socket at | ||
| `/run/docker/plugins/VolumeDriver.sock`. | ||
|
|
||
| You can define each plugin into a separated subdirectory if you want to isolate definitions from each other. | ||
| For example, you can create the `flocker` socket under `/run/docker/plugins/flocker/flocker.sock` and only | ||
| mount `/run/docker/plugins/flocker` inside the `flocker` container. | ||
| For example, you can create the `VolumeDriver` socket under `/run/docker/plugins/VolumeDriver/VolumeDriver.sock` and only | ||
| mount `/run/docker/plugins/VolumeDriver` inside the `VolumeDriver` container. | ||
|
Comment on lines
+52
to
+53
|
||
|
|
||
|
|
||
| Docker always searches for Unix sockets in `/run/docker/plugins` first. It checks for spec or json files under | ||
| `/etc/docker/plugins` and `/usr/lib/docker/plugins` if the socket doesn't exist. The directory scan stops as | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -45,9 +45,9 @@ accepts a volume name and path on the host, and the `--volume-driver` flag | |||||
| accepts a driver type. | ||||||
|
|
||||||
| ```console | ||||||
| $ docker volume create --driver=flocker volumename | ||||||
| $ docker volume create --driver=`VolumeDriver` `VolumeName` | ||||||
|
||||||
|
|
||||||
| $ docker container run -it --volume volumename:/data busybox sh | ||||||
| $ docker container run -it --volume `VolumeName`:/data busybox sh | ||||||
|
||||||
| ``` | ||||||
|
|
||||||
| ### `--volume` | ||||||
|
|
@@ -61,11 +61,9 @@ separated by a colon (`:`) character. | |||||
| - The `Mountpoint` is the path on the host (v1) or in the plugin (v2) where the | ||||||
| volume has been made available. | ||||||
|
|
||||||
| ### `volumedriver` | ||||||
| ### `VolumeDriver` | ||||||
|
||||||
| ### `VolumeDriver` | |
| ### `--volume-driver` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The replacement uses
VolumeDriveras the plugin name in the example, but this is inconsistent with documentation conventions. Line 24 in this same file (not changed in this PR) states "Plugins have human-readable names, which are short, lowercase strings." The example should use a lowercase name like "myplugin" instead of "VolumeDriver" to match this convention and other examples in the codebase (e.g., "flocker", "weave", "rclone").