Skip to content

Commit

Permalink
docs: fix container run option for selinux systems
Browse files Browse the repository at this point in the history
Example code to run in a container didn't work on SELinux systems.
Added filesystem labeling flag to the volume bind mount.
Change will not affect non-SELinux systems.
Also added read-only flag, since conform doesn't need write access.

Signed-off-by: Sebastian Yaghoubi <sebastianyaghoubi@gmail.com>
Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
  • Loading branch information
syaghoubi00 authored and smira committed Dec 23, 2024
1 parent fadbbb4 commit 8078e02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ go install github.com/siderolabs/conform/cmd/conform@latest
Third option is to run it as a container:

```bash
docker run --rm -it -v $PWD:/src -w /src ghcr.io/siderolabs/conform:v0.1.0-alpha.22 enforce
docker run --rm -it -v $PWD:/src:ro,Z -w /src ghcr.io/siderolabs/conform:v0.1.0-alpha.22 enforce
```

You can also install conform with [aqua](https://aquaproj.github.io/).
Expand Down

0 comments on commit 8078e02

Please sign in to comment.