Skip to content

Commit

Permalink
docs, run: show SELinux label flag for cache and bind mounts
Browse files Browse the repository at this point in the history
Buildah cache and bind mounts already support setting SELinux label on
the mounted destination lets document that.

See: https://github.com/containers/buildah/blob/main/tests/bud/buildkit-mount/Dockerfilecachewrite

[NO NEW TESTS NEEDED]
[NO TESTS NEEDED]
[CI:DOCS]

Closes: containers/podman#14964

Signed-off-by: Aditya R <[email protected]>
  • Loading branch information
flouthoc committed Jul 19, 2022
1 parent 012c35b commit eb4ec4a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/buildah-run.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ Current supported mount TYPES are bind, cache, secret and tmpfs. <sup>[[1]](#Foo

· from: stage or image name for the root of the source. Defaults to the build context.

· z: Set shared SELinux label on mounted destination. Use if SELinux is enabled on host machine.

· Z: Set private SELinux label on mounted destination. Use if SELinux is enabled on host machine.

Options specific to tmpfs:

· tmpfs-size: Size of the tmpfs mount in bytes. Unlimited by default in Linux.
Expand All @@ -151,6 +155,10 @@ Current supported mount TYPES are bind, cache, secret and tmpfs. <sup>[[1]](#Foo

· from: stage name for the root of the source. Defaults to host cache directory.

· z: Set shared SELinux label on mounted destination. Use if SELinux is enabled on host machine.

· Z: Set private SELinux label on mounted destination. Use if SELinux is enabled on host machine.

**--network**, **--net**=*mode*

Sets the configuration for the network namespace for the container.
Expand Down

0 comments on commit eb4ec4a

Please sign in to comment.