mirror of https://github.com/docker/docs.git
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:
parent
72786ec397
commit
dc28d62ce6
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue