storage: use different formatting template when inspecting --tmpfs mount

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson 2024-12-20 15:20:39 +01:00
parent 72786ec397
commit dc28d62ce6
1 changed files with 12 additions and 4 deletions

View File

@ -162,6 +162,14 @@ $ docker run -d \
nginx:latest nginx:latest
``` ```
Verify that the mount is a `tmpfs` mount by looking in the `Mounts` section of
the `docker inspect` output:
```console
$ docker inspect tmptest --format '{{ json .Mounts }}'
[{"Type":"tmpfs","Source":"","Destination":"/app","Mode":"","RW":true,"Propagation":""}]
```
{{< /tab >}} {{< /tab >}}
{{< tab name="`--tmpfs`" >}} {{< tab name="`--tmpfs`" >}}
@ -173,17 +181,17 @@ $ docker run -d \
nginx:latest nginx:latest
``` ```
{{< /tab >}}
{{< /tabs >}}
Verify that the mount is a `tmpfs` mount by looking in the `Mounts` section of Verify that the mount is a `tmpfs` mount by looking in the `Mounts` section of
the `docker inspect` output: the `docker inspect` output:
```console ```console
$ docker inspect tmptest --format '{{ json .Mounts }}' $ docker inspect tmptest --format '{{ json .Mounts }}'
[{"Type":"tmpfs","Source":"","Destination":"/app","Mode":"","RW":true,"Propagation":""}] {"/app":""}
``` ```
{{< /tab >}}
{{< /tabs >}}
Stop and remove the container: Stop and remove the container:
```console ```console