diff --git a/docs/reference/commandline/run.md b/docs/reference/commandline/run.md index 6105d21dff2a..2b0c3f3633db 100644 --- a/docs/reference/commandline/run.md +++ b/docs/reference/commandline/run.md @@ -344,16 +344,18 @@ Under these conditions, you can pass any size less than the backing filesystem s For the `windowsfilter`, `btrfs`, and `zfs` storage drivers, you cannot pass a size less than the Default BaseFS Size. - ### Mount tmpfs (--tmpfs) +The `--tmpfs` flag lets you create a `tmpfs` mount. + +The options that you can pass to `--tmpfs` are identical to the Linux `mount -t +tmpfs -o` command. The following example mounts an empty `tmpfs` into the +container with the `rw`, `noexec`, `nosuid`, `size=65536k` options. + ```console $ docker run -d --tmpfs /run:rw,noexec,nosuid,size=65536k my_image ``` -The `--tmpfs` flag mounts an empty tmpfs into the container with the `rw`, -`noexec`, `nosuid`, `size=65536k` options. - ### Mount volume (-v) ```console diff --git a/docs/reference/run.md b/docs/reference/run.md index 625f41ea9f88..46e9f1d81f68 100644 --- a/docs/reference/run.md +++ b/docs/reference/run.md @@ -1131,21 +1131,6 @@ $ sleep 2; docker inspect --format='{{json .State.Health}}' test The health status is also displayed in the `docker ps` output. -### TMPFS (mount tmpfs filesystems) - -```console ---tmpfs=[]: Create a tmpfs mount with: container-dir[:], - where the options are identical to the Linux - 'mount -t tmpfs -o' command. -``` - -The example below mounts an empty tmpfs into the container with the `rw`, -`noexec`, `nosuid`, and `size=65536k` options. - -```console -$ docker run -d --tmpfs /run:rw,noexec,nosuid,size=65536k my_image -``` - ### Filesystem mounts -v, --volume=[host-src:]container-dest[:]: Bind mount a volume.