Skip to content

Commit 4afcaf3

Browse files
committed
storage: use "console" for shell examples
This allows for easier copying of the commands, without selecting the prompt. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 051a690 commit 4afcaf3

10 files changed

Lines changed: 108 additions & 108 deletions

storage/bind-mounts.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ first one.
103103
<div class="tab-content">
104104
<div id="mount-run" class="tab-pane fade in active" markdown="1">
105105

106-
```bash
106+
```console
107107
$ docker run -d \
108108
-it \
109109
--name devtest \
@@ -114,7 +114,7 @@ $ docker run -d \
114114
</div><!--mount-->
115115
<div id="v-run" class="tab-pane fade" markdown="1">
116116

117-
```bash
117+
```console
118118
$ docker run -d \
119119
-it \
120120
--name devtest \
@@ -147,7 +147,7 @@ set to `rprivate`.
147147

148148
Stop the container:
149149

150-
```bash
150+
```console
151151
$ docker container stop devtest
152152

153153
$ docker container rm devtest
@@ -174,7 +174,7 @@ The `--mount` and `-v` examples have the same end result.
174174
<div class="tab-content">
175175
<div id="mount-empty-run" class="tab-pane fade in active" markdown="1">
176176

177-
```bash
177+
```console
178178
$ docker run -d \
179179
-it \
180180
--name broken-container \
@@ -188,7 +188,7 @@ starting container process caused "exec: \"nginx\": executable file not found in
188188
</div><!--mount-->
189189
<div id="v-empty-run" class="tab-pane fade" markdown="1">
190190

191-
```bash
191+
```console
192192
$ docker run -d \
193193
-it \
194194
--name broken-container \
@@ -204,7 +204,7 @@ starting container process caused "exec: \"nginx\": executable file not found in
204204

205205
The container is created but does not start. Remove it:
206206

207-
```bash
207+
```console
208208
$ docker container rm broken-container
209209
```
210210

@@ -228,7 +228,7 @@ The `--mount` and `-v` examples have the same result.
228228
<div class="tab-content">
229229
<div id="mount-readonly" class="tab-pane fade in active" markdown="1">
230230

231-
```bash
231+
```console
232232
$ docker run -d \
233233
-it \
234234
--name devtest \
@@ -239,7 +239,7 @@ $ docker run -d \
239239
</div><!--mount-->
240240
<div id="v-readonly" class="tab-pane fade" markdown="1">
241241

242-
```bash
242+
```console
243243
$ docker run -d \
244244
-it \
245245
--name devtest \
@@ -268,7 +268,7 @@ correctly. Look for the `Mounts` section:
268268

269269
Stop the container:
270270

271-
```bash
271+
```console
272272
$ docker container stop devtest
273273

274274
$ docker container rm devtest
@@ -316,7 +316,7 @@ The `--mount` and `-v` examples have the same result.
316316
<div class="tab-content">
317317
<div id="mount-propagation" class="tab-pane fade in active" markdown="1">
318318

319-
```bash
319+
```console
320320
$ docker run -d \
321321
-it \
322322
--name devtest \
@@ -328,7 +328,7 @@ $ docker run -d \
328328
</div><!--mount-->
329329
<div id="v-propagation" class="tab-pane fade" markdown="1">
330330

331-
```bash
331+
```console
332332
$ docker run -d \
333333
-it \
334334
--name devtest \
@@ -367,7 +367,7 @@ the bind mount's contents:
367367

368368
It is not possible to modify the selinux label using the `--mount` flag.
369369

370-
```bash
370+
```console
371371
$ docker run -d \
372372
-it \
373373
--name devtest \

storage/storagedriver/aufs-driver.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ storage driver is configured, Docker uses it by default.
3737

3838
1. Use the following command to verify that your kernel supports AUFS.
3939

40-
```bash
40+
```console
4141
$ grep aufs /proc/filesystems
4242

4343
nodev aufs
4444
```
4545

4646
2. Check which storage driver Docker is using.
4747

48-
```bash
48+
```console
4949
$ docker info
5050

5151
<truncated output>
@@ -88,7 +88,7 @@ minimize overhead.
8888
The following `docker pull` command shows a Docker host downloading a Docker
8989
image comprising five layers.
9090

91-
```bash
91+
```console
9292
$ docker pull ubuntu
9393

9494
Using default tag: latest

storage/storagedriver/btrfs-driver.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Btrfs Filesystem as Btrfs.
4141
- `btrfs` support must exist in your kernel. To check this, run the following
4242
command:
4343

44-
```bash
44+
```console
4545
$ grep btrfs /proc/filesystems
4646

4747
btrfs
@@ -60,7 +60,7 @@ This procedure is essentially identical on SLES and Ubuntu.
6060
2. Copy the contents of `/var/lib/docker/` to a backup location, then empty
6161
the contents of `/var/lib/docker/`:
6262

63-
```bash
63+
```console
6464
$ sudo cp -au /var/lib/docker /var/lib/docker.bk
6565
$ sudo rm -rf /var/lib/docker/*
6666
```
@@ -70,7 +70,7 @@ This procedure is essentially identical on SLES and Ubuntu.
7070
`/dev/xvdg`. Double-check the block device names because this is a
7171
destructive operation.
7272

73-
```bash
73+
```console
7474
$ sudo mkfs.btrfs -f /dev/xvdf /dev/xvdg
7575
```
7676

@@ -80,7 +80,7 @@ This procedure is essentially identical on SLES and Ubuntu.
8080
4. Mount the new Btrfs filesystem on the `/var/lib/docker/` mount point. You
8181
can specify any of the block devices used to create the Btrfs filesystem.
8282

83-
```bash
83+
```console
8484
$ sudo mount -t btrfs /dev/xvdf /var/lib/docker
8585
```
8686

@@ -89,7 +89,7 @@ This procedure is essentially identical on SLES and Ubuntu.
8989

9090
5. Copy the contents of `/var/lib/docker.bk` to `/var/lib/docker/`.
9191

92-
```bash
92+
```console
9393
$ sudo cp -au /var/lib/docker.bk/* /var/lib/docker/
9494
```
9595

@@ -112,7 +112,7 @@ This procedure is essentially identical on SLES and Ubuntu.
112112
7. Start Docker. After it is running, verify that `btrfs` is being used as the
113113
storage driver.
114114

115-
```bash
115+
```console
116116
$ docker info
117117

118118
Containers: 0
@@ -140,7 +140,7 @@ roughly 1 GB.
140140
To add a block device to a Btrfs volume, use the `btrfs device add` and
141141
`btrfs filesystem balance` commands.
142142

143-
```bash
143+
```console
144144
$ sudo btrfs device add /dev/svdh /var/lib/docker
145145

146146
$ sudo btrfs filesystem balance /var/lib/docker

0 commit comments

Comments
 (0)