Explorar el Código

Fix code block fences and typo.

Signed-off-by: Ding Fei <dingfei@stars.org.cn>
(cherry picked from commit 08fe24c2d5ef415d2b94f8e3f28d0299db2d7b6a)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Ding Fei hace 8 años
padre
commit
05f08f771e
Se han modificado 2 ficheros con 5 adiciones y 4 borrados
  1. 4 4
      docs/extend/index.md
  2. 1 0
      docs/extend/plugin_api.md

+ 4 - 4
docs/extend/index.md

@@ -33,7 +33,7 @@ Hub or on a private registry.
 
 
 You install the plugin using a single command: `docker plugin install <PLUGIN>`.
 You install the plugin using a single command: `docker plugin install <PLUGIN>`.
 The `plugin install` command pulls the plugin from the Docker Hub or private
 The `plugin install` command pulls the plugin from the Docker Hub or private
-registry. If necessary the CLI prompts you to accept any privilige requriements.
+registry. If necessary the CLI prompts you to accept any privilege requriements.
 For example the plugin may require access to a device on the host system.
 For example the plugin may require access to a device on the host system.
 Finally it enables the plugin.
 Finally it enables the plugin.
 
 
@@ -60,7 +60,7 @@ to create a volume.
     The plugin requests 2 privileges, the `CAP_SYS_ADMIN` capability to be able
     The plugin requests 2 privileges, the `CAP_SYS_ADMIN` capability to be able
     to do mount inside the plugin and `host networking`.
     to do mount inside the plugin and `host networking`.
 
 
-2. Check for a value of `true` the `ENABLED` column to verify the plugin
+2.  Check for a value of `true` the `ENABLED` column to verify the plugin
 started without error.
 started without error.
 
 
     ```bash
     ```bash
@@ -70,7 +70,7 @@ started without error.
     vieux/sshfs         latest              true
     vieux/sshfs         latest              true
     ```
     ```
 
 
-3. Create a volume using the plugin.
+3.  Create a volume using the plugin.
 
 
     ```bash
     ```bash
     $ docker volume create \
     $ docker volume create \
@@ -89,7 +89,7 @@ started without error.
     <content of /remote on machine 1.2.3.4>
     <content of /remote on machine 1.2.3.4>
     ```
     ```
 
 
-5. Verify the plugin successfully created the volume.
+5.  Verify the plugin successfully created the volume.
 
 
     ```bash
     ```bash
     $ docker volume ls
     $ docker volume ls

+ 1 - 0
docs/extend/plugin_api.md

@@ -119,6 +119,7 @@ ExecStart=/usr/lib/docker/your-plugin
 WantedBy=multi-user.target
 WantedBy=multi-user.target
 ```
 ```
 The `socket` file (for example `/lib/systemd/system/your-plugin.socket`):
 The `socket` file (for example `/lib/systemd/system/your-plugin.socket`):
+
 ```
 ```
 [Unit]
 [Unit]
 Description=Your plugin
 Description=Your plugin