From 2cf089070e60c7a1ca72ca9762119c6a85ca9813 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Forr=C3=B3?= Date: Fri, 6 Feb 2026 10:51:31 +0100 Subject: [PATCH] Add a tip about a common error when running packit container MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nikola Forró --- docs/cli/index.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/cli/index.md b/docs/cli/index.md index 518f27ccb0..8b5c8a7692 100644 --- a/docs/cli/index.md +++ b/docs/cli/index.md @@ -75,6 +75,15 @@ i.e. the same you'd get by pip installing from GitHub. $ packit Usage: packit [OPTIONS] COMMAND [ARGS]... +:::tip + +If you get an error such as `Error: SELinux relabeling of /some/dir is not allowed`, make sure +your working directory is a directory your user has full access to. The relabeling is requested +by the `:z` suffix in order to ensure the directory is writable from both inside and outside +the container. + +::: + Depending on the command you want to perform you need to mount secrets and configuration files, like in the following examples: