Merge pull request #13284 from eriksjolund/troubleshooting_mention_rootfs_overlay_option

[CI:DOCS] troubleshooting: mention overlay option for --rootfs
This commit is contained in:
OpenShift Merge Robot 2022-02-21 11:15:41 -05:00 committed by GitHub
commit cd00a99c66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 2 deletions

View File

@ -645,16 +645,26 @@ to mount volumes on them.
Run the container once in read/write mode, Podman will generate all of the FDs on the rootfs, and
from that point forward you can run with a read-only rootfs.
```
$ podman run --rm --rootfs /path/to/rootfs true
```
The command above will create all the missing directories needed to run the container.
After that, it can be used in read only mode, by multiple containers at the same time:
```
$ podman run --read-only --rootfs /path/to/rootfs ....
```
Another option would be to create an overlay file system on the directory as a lower and then
then allow podman to create the files on the upper.
Another option is to use an Overlay Rootfs Mount:
```
$ podman run --rootfs /path/to/rootfs:O ....
```
Modifications to the mount point are destroyed when the container
finishes executing, similar to a tmpfs mount point being unmounted.
### 26) Running containers with CPU limits fails with a permissions error