mirror of https://github.com/docker/cli.git
docs: move --tmpfs to docker run reference
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
parent
5ede4c82ac
commit
52716c813b
|
@ -372,16 +372,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
|
||||
|
|
|
@ -1130,21 +1130,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.
|
||||
|
|
Loading…
Reference in New Issue