|
@@ -42,6 +42,7 @@ The following example change the env variable `DEBUG` on the
|
|
`sample-volume-plugin` plugin.
|
|
`sample-volume-plugin` plugin.
|
|
|
|
|
|
```bash
|
|
```bash
|
|
|
|
+{% raw %}
|
|
$ docker plugin inspect -f {{.Settings.Env}} tiborvass/sample-volume-plugin
|
|
$ docker plugin inspect -f {{.Settings.Env}} tiborvass/sample-volume-plugin
|
|
|
|
|
|
[DEBUG=0]
|
|
[DEBUG=0]
|
|
@@ -50,6 +51,7 @@ $ docker plugin set tiborvass/sample-volume-plugin DEBUG=1
|
|
|
|
|
|
$ docker plugin inspect -f {{.Settings.Env}} tiborvass/sample-volume-plugin
|
|
$ docker plugin inspect -f {{.Settings.Env}} tiborvass/sample-volume-plugin
|
|
[DEBUG=1]
|
|
[DEBUG=1]
|
|
|
|
+{% endraw %}
|
|
```
|
|
```
|
|
|
|
|
|
### Change the source of a mount
|
|
### Change the source of a mount
|
|
@@ -58,6 +60,7 @@ The following example change the source of the `mymount` mount on
|
|
the `myplugin` plugin.
|
|
the `myplugin` plugin.
|
|
|
|
|
|
```bash
|
|
```bash
|
|
|
|
+{% raw %}
|
|
$ docker plugin inspect -f '{{with $mount := index .Settings.Mounts 0}}{{$mount.Source}}{{end}}' myplugin
|
|
$ docker plugin inspect -f '{{with $mount := index .Settings.Mounts 0}}{{$mount.Source}}{{end}}' myplugin
|
|
/foo
|
|
/foo
|
|
|
|
|
|
@@ -65,6 +68,7 @@ $ docker plugins set myplugin mymount.source=/bar
|
|
|
|
|
|
$ docker plugin inspect -f '{{with $mount := index .Settings.Mounts 0}}{{$mount.Source}}{{end}}' myplugin
|
|
$ docker plugin inspect -f '{{with $mount := index .Settings.Mounts 0}}{{$mount.Source}}{{end}}' myplugin
|
|
/bar
|
|
/bar
|
|
|
|
+{% endraw %}
|
|
```
|
|
```
|
|
|
|
|
|
> **Note**: Since only `source` is settable in `mymount`,
|
|
> **Note**: Since only `source` is settable in `mymount`,
|
|
@@ -76,6 +80,7 @@ The following example change the path of the `mydevice` device on
|
|
the `myplugin` plugin.
|
|
the `myplugin` plugin.
|
|
|
|
|
|
```bash
|
|
```bash
|
|
|
|
+{% raw %}
|
|
$ docker plugin inspect -f '{{with $device := index .Settings.Devices 0}}{{$device.Path}}{{end}}' myplugin
|
|
$ docker plugin inspect -f '{{with $device := index .Settings.Devices 0}}{{$device.Path}}{{end}}' myplugin
|
|
/dev/foo
|
|
/dev/foo
|
|
|
|
|
|
@@ -83,6 +88,7 @@ $ docker plugins set myplugin mydevice.path=/dev/bar
|
|
|
|
|
|
$ docker plugin inspect -f '{{with $device := index .Settings.Devices 0}}{{$device.Path}}{{end}}' myplugin
|
|
$ docker plugin inspect -f '{{with $device := index .Settings.Devices 0}}{{$device.Path}}{{end}}' myplugin
|
|
/dev/bar
|
|
/dev/bar
|
|
|
|
+{% endraw %}
|
|
```
|
|
```
|
|
|
|
|
|
> **Note**: Since only `path` is settable in `mydevice`,
|
|
> **Note**: Since only `path` is settable in `mydevice`,
|
|
@@ -93,6 +99,7 @@ $ docker plugin inspect -f '{{with $device := index .Settings.Devices 0}}{{$devi
|
|
The following example change the source of the args on the `myplugin` plugin.
|
|
The following example change the source of the args on the `myplugin` plugin.
|
|
|
|
|
|
```bash
|
|
```bash
|
|
|
|
+{% raw %}
|
|
$ docker plugin inspect -f '{{.Settings.Args}}' myplugin
|
|
$ docker plugin inspect -f '{{.Settings.Args}}' myplugin
|
|
["foo", "bar"]
|
|
["foo", "bar"]
|
|
|
|
|
|
@@ -100,6 +107,7 @@ $ docker plugins set myplugin args="foo bar baz"
|
|
|
|
|
|
$ docker plugin inspect -f '{{.Settings.Args}}' myplugin
|
|
$ docker plugin inspect -f '{{.Settings.Args}}' myplugin
|
|
["foo", "bar", "baz"]
|
|
["foo", "bar", "baz"]
|
|
|
|
+{% endraw %}
|
|
```
|
|
```
|
|
|
|
|
|
## Related commands
|
|
## Related commands
|