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