mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-03-15 11:22:30 +00:00
Add a note for SELinux users.
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user