Docker Usage
DiscordChatExporter CLI is available as a Docker image. This isolates the runtime environment and requires no .NET installation on the host.
Basics
-
Pull the image:
docker pull tyrrrz/discordchatexporter:stable -
Run a command: The general syntax maps the host's output directory to the container's
/outvolume.docker run --rm -v /path/to/your/export/folder:/out tyrrrz/discordchatexporter:stable export -t TOKEN -c CHANNEL_ID
Common Examples
Export a channel to the current directory:
docker run --rm -v $PWD:/out tyrrrz/discordchatexporter:stable export -t TOKEN -c 123456789
Interactive Mode (Progress Bars):
Use -it to allocate a pseudo-TTY.
docker run --rm -it -v $PWD:/out tyrrrz/discordchatexporter:stable export -t TOKEN -c 123456789
Using Environment Variables:
docker run --rm -e DISCORD_TOKEN="your-token" -v $PWD:/out tyrrrz/discordchatexporter:stable export -c 123456789
Permissions on Linux
The Docker container runs as a non-root user (uid:1000) by default. If you encounter permission issues with the generated files, you can force the user ID:
docker run --rm -it -v $PWD:/out --user $(id -u):$(id -g) tyrrrz/discordchatexporter:stable export ...