mirror of
https://github.com/containers/podman.git
synced 2025-05-23 01:57:56 +08:00
Merge pull request #16374 from rhatdan/man
[CI:DOCS] Fix documentation on read-only-tmpfs
This commit is contained in:
@ -470,9 +470,10 @@ content. Installing packages into _/usr_, for example. In production,
|
|||||||
applications seldom need to write to the image. Container applications write
|
applications seldom need to write to the image. Container applications write
|
||||||
to volumes if they need to write to file systems at all. Applications can be
|
to volumes if they need to write to file systems at all. Applications can be
|
||||||
made more secure by running them in read-only mode using the **--read-only** switch.
|
made more secure by running them in read-only mode using the **--read-only** switch.
|
||||||
This protects the container's image from modification. Read-only containers may
|
This protects the container's image from modification. By default read-only
|
||||||
still need to write temporary data. The best way to handle this is to mount
|
containers can write to temporary data. Podman mounts a tmpfs on _/run_ and
|
||||||
tmpfs directories on _/run_ and _/tmp_.
|
_/tmp_ within the container. If the container should not write to any file
|
||||||
|
system within the container, including tmpfs, set --read-only-tmpfs=false.
|
||||||
|
|
||||||
```
|
```
|
||||||
$ podman run --read-only -i -t fedora /bin/bash
|
$ podman run --read-only -i -t fedora /bin/bash
|
||||||
|
Reference in New Issue
Block a user