From bceb0a0415da16e8a08b594520356c533f63c1a9 Mon Sep 17 00:00:00 2001
From: David Karlsson <35727626+dvdksn@users.noreply.github.com>
Date: Mon, 27 Nov 2023 14:11:38 +0100
Subject: [PATCH] docs: move --tmpfs to docker run reference
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
---
docs/reference/commandline/run.md | 10 ++++++----
docs/reference/run.md | 15 ---------------
2 files changed, 6 insertions(+), 19 deletions(-)
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.