mirror of
https://github.com/docker/cli.git
synced 2025-08-08 12:02:07 +03:00
Fix docs for tmpfs (pr 19688)
Underlying files are no longer copied to the tmpfs. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
committed by
Tibor Vass
parent
045907a71c
commit
d4fd7fd13b
@@ -163,13 +163,12 @@ flag exists to allow special use-cases, like running Docker within Docker.
|
||||
The `-w` lets the command being executed inside directory given, here
|
||||
`/path/to/dir/`. If the path does not exists it is created inside the container.
|
||||
|
||||
### mount tmpfs (--tmpfs)
|
||||
### Mount tmpfs (--tmpfs)
|
||||
|
||||
$ docker run -d --tmpfs /run:rw,noexec,nosuid,size=65536k my_image
|
||||
|
||||
The --tmpfs flag mounts a tmpfs into the container with the rw,noexec,nosuid,size=65536k options.
|
||||
|
||||
Underlying content from the /run in the my_image image is copied into tmpfs.
|
||||
The `--tmpfs` flag mounts an empty tmpfs into the container with the `rw`,
|
||||
`noexec`, `nosuid`, `size=65536k` options.
|
||||
|
||||
### Mount volume (-v, --read-only)
|
||||
|
||||
|
Reference in New Issue
Block a user