the -it flag is used when you want an interactive shell, it is useless in this context
the --rm flag will remove the container after the job is done, this is very important because it will save a lot of space on the end user's computer
the -u defines the user id that will be used inside the container, this is really convenient because the output files will belong to the user who launches docker
As a comparison, here how you launche the pandoc docker image:
the
-it
flag is used when you want an interactive shell, it is useless in this contextthe
--rm
flag will remove the container after the job is done, this is very important because it will save a lot of space on the end user's computerthe
-u
defines the user id that will be used inside the container, this is really convenient because the output files will belong to the user who launches dockerAs a comparison, here how you launche the pandoc docker image:
see https://github.com/pandoc/dockerfiles#basic-usage