@@ -20,7 +20,7 @@ title: Managed plugin system
2020* [ Debugging plugins] ( index.md#debugging-plugins )
2121
2222Docker Engine's plugins system allows you to install, start, stop, and remove
23- plugins using Docker Engine.
23+ plugins using Docker Engine.
2424
2525For information about the legacy plugin system available in Docker Engine 1.12
2626and earlier, see [ Understand legacy Docker Engine plugins] ( legacy_plugins.md ) .
@@ -78,7 +78,7 @@ enabled, and use it to create a volume.
78783. Create a volume using the plugin.
7979 This example mounts the ` /remote` directory on host ` 1.2.3.4` into a
8080 volume named ` sshvolume` .
81-
81+
8282 This volume can now be mounted into containers.
8383
8484 ` ` ` bash
@@ -110,7 +110,7 @@ enabled, and use it to create a volume.
1101106. Remove the volume ` sshvolume`
111111 ` ` ` bash
112112 docker volume rm sshvolume
113-
113+
114114 sshvolume
115115 ` ` `
116116To disable a plugin, use the ` docker plugin disable` command. To completely
@@ -122,10 +122,10 @@ commands and options, see the
122122
123123In swarm mode, it is possible to create a service that allows for attaching
124124to networks or mounting volumes. Swarm schedules services based on plugin availability
125- on a node. In this example, a volume plugin is installed on a swarm worker and a volume
125+ on a node. In this example, a volume plugin is installed on a swarm worker and a volume
126126is created using the plugin. In the manager, a service is created with the relevant
127127mount options. It can be observed that the service is scheduled to run on the worker
128- node with the said volume plugin and volume.
128+ node with the said volume plugin and volume.
129129
130130In the following example, node1 is the manager and node2 is the worker.
131131
@@ -152,7 +152,7 @@ In the following example, node1 is the manager and node2 is the worker.
152152 Status: Downloaded newer image for tiborvass/sample-volume-plugin:latest
153153 Installed plugin tiborvass/sample-volume-plugin
154154 ` ` `
155-
155+
156156 ` ` ` bash
157157 $ docker volume create -d tiborvass/sample-volume-plugin --name pluginVol
158158 ` ` `
@@ -163,15 +163,17 @@ In the following example, node1 is the manager and node2 is the worker.
163163 $ docker service create --name my-service --mount type=volume,volume-driver=tiborvass/sample-volume-plugin,source=pluginVol,destination=/tmp busybox top
164164
165165 $ docker service ls
166- z1sj8bb8jnfn my-service replicated 1/1 busybox:latest
166+ z1sj8bb8jnfn my-service replicated 1/1 busybox:latest
167167 ` ` `
168168 docker service ls shows service 1 instance of service running.
169169
1701704. Observe the task getting scheduled in node 2:
171171
172172 ` ` ` bash
173- $ docker ps --format ' {{.ID}}\t {{.Status}} {{.Names}} {{.Command}}'
173+ {% raw %}
174+ $ docker ps --format ' {{.ID}}\t {{.Status}} {{.Names}} {{.Command}}'
174175 83fc1e842599 Up 2 days my-service.1.9jn59qzn7nbc3m0zt1hij12xs " top"
176+ {% endraw %}
175177 ` ` `
176178
177179# # Developing a plugin
@@ -228,7 +230,7 @@ with Docker Engine. This plugin has no runtime parameters.
228230A new plugin can be created by running
229231`docker plugin create <plugin-name> ./path/to/plugin/data` where the plugin
230232data contains a plugin configuration file `config.json` and a root filesystem
231- in subdirectory `rootfs`.
233+ in subdirectory `rootfs`.
232234
233235After that the plugin `<plugin-name>` will show up in `docker plugin ls`.
234236Plugins can be pushed to remote registries with
@@ -292,7 +294,7 @@ $ docker-runc exec -t f52a3df433b9aceee436eaada0752f5797aab1de47e5485f1690a073b8
292294#### Using curl to debug plugin socket issues.
293295
294296To verify if the plugin API socket that the docker daemon communicates with
295- is responsive, use curl. In this example, we will make API calls from the
297+ is responsive, use curl. In this example, we will make API calls from the
296298docker host to volume and network plugins using curl 7.47.0 to ensure that
297299the plugin is listening on the said socket. For a well functioning plugin,
298300these basic requests should work. Note that plugin sockets are available on the host under `/var/run/docker/plugins/<pluginID>`
@@ -309,8 +311,8 @@ curl -H "Content-Type: application/json" -XPOST -d '{}' --unix-socket /var/run/d
309311
310312{"Scope":"local"}
311313```
312- When using curl 7.5 and above, the URL should be of the form
313- `http://hostname/APICall`, where `hostname` is the valid hostname where the
314+ When using curl 7.5 and above, the URL should be of the form
315+ `http://hostname/APICall`, where `hostname` is the valid hostname where the
314316plugin is installed and `APICall` is the call to the plugin API.
315317
316318For example, `http://localhost/VolumeDriver.List`
0 commit comments