Skip to content

Commit dc28d62

Browse files
committed
storage: use different formatting template when inspecting --tmpfs mount
Signed-off-by: David Karlsson <[email protected]>
1 parent 72786ec commit dc28d62

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

content/manuals/engine/storage/tmpfs.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,14 @@ $ docker run -d \
162162
nginx:latest
163163
```
164164

165+
Verify that the mount is a `tmpfs` mount by looking in the `Mounts` section of
166+
the `docker inspect` output:
167+
168+
```console
169+
$ docker inspect tmptest --format '{{ json .Mounts }}'
170+
[{"Type":"tmpfs","Source":"","Destination":"/app","Mode":"","RW":true,"Propagation":""}]
171+
```
172+
165173
{{< /tab >}}
166174
{{< tab name="`--tmpfs`" >}}
167175

@@ -173,17 +181,17 @@ $ docker run -d \
173181
nginx:latest
174182
```
175183

176-
{{< /tab >}}
177-
{{< /tabs >}}
178-
179184
Verify that the mount is a `tmpfs` mount by looking in the `Mounts` section of
180185
the `docker inspect` output:
181186

182187
```console
183188
$ docker inspect tmptest --format '{{ json .Mounts }}'
184-
[{"Type":"tmpfs","Source":"","Destination":"/app","Mode":"","RW":true,"Propagation":""}]
189+
{"/app":""}
185190
```
186191

192+
{{< /tab >}}
193+
{{< /tabs >}}
194+
187195
Stop and remove the container:
188196

189197
```console

0 commit comments

Comments
 (0)