ChrisChinchilla / vscode-pandoc

Visual Studio Code extension lets you render markdown to pdf, word doc or html with pandoc
MIT License
26 stars 13 forks source link

Unable to use docker image on linux due to file permissions issue #32

Closed raven42 closed 7 months ago

raven42 commented 11 months ago

Seeing errors due to file permissions on linux when pandoc.useDocker enabled.

stderr: pandoc: file.html: openFile: permission denied (Permission denied)

exec error: Error: Command failed: docker run --rm -v "/home/user/path:/data"  pandoc/latex:latest "file.md" -o "file.html"
pandoc: file.html: openFile: permission denied (Permission denied)

This is due to the docker image using a default user:group when attempting to write the output file. Having the ability to add docker options will help correct this so the appropriate user:group can be passed into the docker run command.