Skip to content

Commit

Permalink
docs: move --tmpfs to docker run reference
Browse files Browse the repository at this point in the history
Signed-off-by: David Karlsson <[email protected]>
  • Loading branch information
dvdksn committed Nov 27, 2023
1 parent 5295f17 commit bceb0a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 19 deletions.
10 changes: 6 additions & 4 deletions docs/reference/commandline/run.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.


### <a name="tmpfs"></a> 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.

### <a name="volume"></a> Mount volume (-v)

```console
Expand Down
15 changes: 0 additions & 15 deletions docs/reference/run.md
Original file line number Diff line number Diff line change
Expand Up @@ -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[:<options>],
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[:<options>]: Bind mount a volume.
Expand Down

0 comments on commit bceb0a0

Please sign in to comment.