From f185d646d44a3f5d998462865e51424f602d71f2 Mon Sep 17 00:00:00 2001 From: aubrel Date: Wed, 28 Oct 2020 18:58:31 -0400 Subject: [PATCH] Add a note for SELinux users. --- Docker-usage-instructions.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Docker-usage-instructions.md b/Docker-usage-instructions.md index ec1ae18..ed369f5 100644 --- a/Docker-usage-instructions.md +++ b/Docker-usage-instructions.md @@ -34,6 +34,14 @@ docker run --rm -it -v /path/on/machine:/app/out tyrrrz/discordchatexporter:stab Note the `-v /path/on/machine:/app/out` option which instructs Docker to bind the `/app/out` directory inside the container to a path on your host machine. Replace `/path/on/machine` with the directory you want the files to be saved at. +**If you are running SELinux, you will need to add the `:z` option after `/app/out`, e.g.:** + +``` +docker run --rm -v /path/on/machine:/app/out:z tyrrrz/discordchatexporter:stable export -t TOKEN -c CHANNELID +``` + +For more information, refer to the [Docker docs SELinux labels for bind mounts page](https://docs.docker.com/storage/bind-mounts/#configure-the-selinux-label). + You can also use the current working directory as the output directory by specifying: * `-v $PWD:/app/out` in Mac/Linux * `-v $pwd.Path:/app/out` in PowerShell