Add a note for SELinux users.

aubrel
2020-10-28 18:58:31 -04:00
parent c3dd67628a
commit f185d646d4

@@ -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