From 3cc65e2c1dd0e68421741a563575fc86052602bf Mon Sep 17 00:00:00 2001 From: David Zager Date: Fri, 3 May 2024 14:30:03 -0400 Subject: [PATCH] :bug: explain volume mount labeling for podman (#596) Fixes #587 Signed-off-by: David Zager --- .../examples/HelloWorld/README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/external-providers/dotnet-external-provider/examples/HelloWorld/README.md b/external-providers/dotnet-external-provider/examples/HelloWorld/README.md index a251df94..7a9187a5 100644 --- a/external-providers/dotnet-external-provider/examples/HelloWorld/README.md +++ b/external-providers/dotnet-external-provider/examples/HelloWorld/README.md @@ -19,12 +19,17 @@ we must start the provider before running the analyzer. ```shell podman run -it --rm -P -u 1000:1000 \ - -v $PWD/external-providers/dotnet-external-provider/examples/:$PWD/external-providers/dotnet-external-provider/examples/ \ + -v $PWD/external-providers/dotnet-external-provider/examples/:$PWD/external-providers/dotnet-external-provider/examples/:z \ quay.io/konveyor/dotnet-external-provider:latest ``` -**NOTE** Using the exact same path inside the container and host is our way of -simulating a shared filesystem between the analyzer and provider. +**NOTEs** + * Using the exact same path inside the container and host is our way of + simulating a shared filesystem between the analyzer and provider. + * `:z` is necessary on hosts with labeling systems like SELinux that require + proper labels be placed on volume content mounted into a container. See + [podman documentation](https://docs.podman.io/en/latest/markdown/podman-run.1.html) + for more information (specifically under "Labeling Volume Mounts"). Verify provider is running and take note of open ports: