On an apple Silicon you cannot run linux/amd64 images, you need aarch64 ones. The Pandoc docker images are amd64 only. You should use another image or install Pandoc directly.

I encountered this problem a while back and made a apple silicon-compatible image for quarto: https://hub.docker.com/repository/docker/jdutant/quarto-minimal/general
Quarto embeds pandoc, so you can also use it to run Pandoc:

docker run --rm --volume $(pwd):/data jdutant/quarto-minimal pandoc source.md -o out.html

It's a slightly older version of Pandoc, but you can use it for a try-out.

J

On Tuesday, November 14, 2023 at 4:23:37 PM UTC+11 Srini N wrote:
Step 1: Created simple test.md with just three lines below:

# Primary header (similar to HTML H1 tag)
## Secondary header (similar to HTML H2 tag)
### Tertiary header (similar to HTML H3 tag)

Step 2: Ran following command

docker run --rm --volume "$(pwd):/data" --user $(id -u):$(id -g) --platform linux/amd64 pandoc/latex test.md -o outfile.pdf

And no file is generated and no error is thrown. Had to use "--platform linux/amd64" option because default option does not work on Apple Mac with M1 chip. No idea what is wrong.

Appreciate any help

Thanks much

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/3ddc2f86-9c78-43a9-89ea-493728cb0bb0n%40googlegroups.com.