-```bash
+```console
$ docker run -d \
--name=nginxtest \
-v nginx-vol:/usr/share/nginx/html \
@@ -337,7 +337,7 @@ After running either of these examples, run the following commands to clean up
the containers and volumes. Note volume removal is a separate step.
-```bash
+```console
$ docker container stop nginxtest
$ docker container rm nginxtest
@@ -367,7 +367,7 @@ The `--mount` and `-v` examples have the same result.
-```bash
+```console
$ docker run -d \
--name=nginxtest \
--mount source=nginx-vol,destination=/usr/share/nginx/html,readonly \
@@ -377,7 +377,7 @@ $ docker run -d \
-```bash
+```console
$ docker run -d \
--name=nginxtest \
-v nginx-vol:/usr/share/nginx/html:ro \
@@ -408,7 +408,7 @@ correctly. Look for the `Mounts` section:
Stop and remove the container, and remove the volume. Volume removal is a
separate step.
-```bash
+```console
$ docker container stop nginxtest
$ docker container rm nginxtest
@@ -448,7 +448,7 @@ host and can connect to the second using SSH.
On the Docker host, install the `vieux/sshfs` plugin:
-```bash
+```console
$ docker plugin install --grant-all-permissions vieux/sshfs
```
@@ -458,7 +458,7 @@ This example specifies a SSH password, but if the two hosts have shared keys
configured, you can omit the password. Each volume driver may have zero or more
configurable options, each of which is specified using an `-o` flag.
-```bash
+```console
$ docker volume create --driver vieux/sshfs \
-o sshcmd=test@node2:/home/test \
-o password=testpassword \
@@ -472,7 +472,7 @@ configured, you can omit the password. Each volume driver may have zero or more
configurable options. **If the volume driver requires you to pass options, you
must use the `--mount` flag to mount the volume, rather than `-v`.**
-```bash
+```console
$ docker run -d \
--name sshfs-container \
--volume-driver vieux/sshfs \
@@ -485,7 +485,7 @@ $ docker run -d \
This example shows how you can create an NFS volume when creating a service. This example uses `10.0.0.10` as the NFS server and `/var/docker-nfs` as the exported directory on the NFS server. Note that the volume driver specified is `local`.
#### NFSv3
-```bash
+```console
$ docker service create -d \
--name nfs-service \
--mount 'type=volume,source=nfsvolume,target=/app,volume-driver=local,volume-opt=type=nfs,volume-opt=device=:/var/docker-nfs,volume-opt=o=addr=10.0.0.10' \
@@ -493,7 +493,7 @@ $ docker service create -d \
```
#### NFSv4
-```bash
+```console
docker service create -d \
--name nfs-service \
--mount 'type=volume,source=nfsvolume,target=/app,volume-driver=local,volume-opt=type=nfs,volume-opt=device=:/var/docker-nfs,"volume-opt=o=addr=10.0.0.10,rw,nfsvers=4,async"' \
@@ -503,8 +503,8 @@ docker service create -d \
### Create CIFS/Samba volumes
You can mount a Samba share directly in docker without configuring a mount point on your host.
-```bash
-docker volume create \
+```console
+$ docker volume create \
--driver local \
--opt type=cifs \
--opt device=//uxxxxx.your-server.de/backup \