Updated Docker usage instructions (markdown)

Alexey Golub
2019-03-22 20:58:21 +02:00
parent a7e7a7fdc8
commit 179aeb1669

@@ -4,20 +4,19 @@ To pull the latest version:
To export: 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`: 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
## ##