From 179aeb1669f4adae1c1df3e35e414a4016c62421 Mon Sep 17 00:00:00 2001 From: Alexey Golub Date: Fri, 22 Mar 2019 20:58:21 +0200 Subject: [PATCH] Updated Docker usage instructions (markdown) --- Docker-usage-instructions.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Docker-usage-instructions.md b/Docker-usage-instructions.md index b0a0792..47618de 100644 --- a/Docker-usage-instructions.md +++ b/Docker-usage-instructions.md @@ -4,20 +4,19 @@ To pull the latest version: To export: - $ docker run tyrrrz/discordchatexporter export -t TOKEN -c CHANNEL + $ docker run --rm tyrrrz/discordchatexporter export -t TOKEN -c CHANNEL To export using a Bot Token just add `-b`: - $ docker run tyrrrz/discordchatexporter export -t TOKEN -c CHANNEL -b + $ docker run --rm tyrrrz/discordchatexporter export -t TOKEN -c CHANNEL -b -The CLI options can be found at: +To get help and real-time progress reporting, use interactive mode: - $ docker run -it tyrrrz/discordchatexporter -# + $ docker run --rm -it tyrrrz/discordchatexporter -A docker image's export path is in /a, to export the file to host use: +When running in Docker, DiscordChatExporter exports to `/app/out` unless `-o/--output` parameter is specified. In order to access the output files, you need to bind the output directory to a directory on your host system. - $ docker run -v $PWD:/a tyrrrz/discordchatexporter export -t TOKEN -c CHANNEL + $ docker run --rm -v /some/path/on/host:/app/out tyrrrz/discordchatexporter export -t TOKEN -c CHANNEL ##