Tag: pdflatex

Docker:容器A可以调用另一个容器B上的可执行文件吗?

我有两个Docker镜像,一个包含pandoc (将文档以不同格式转换为多种格式),另一个包含pdflatex (来自texlive ,将tex文件转换为pdf )。 我的目标是将文档从md转换为pdf 。 我可以分别运行每个图像: # call pandoc inside my-pandoc-image (md -> tex) docker run –rm \ -v $(pwd):/pandoc \ my-pandoc-image \ pandoc -s test.md -o test.tex # call pdflatex inside my-texlive-image (tex -> pdf) docker run –rm \ -v $(pwd):/texlive \ my-texlive-image \ pdflatex test.tex # generates test.pdf 但事实上,我想要的是直接从容器中调用pandoc将md转换为pdf ,如下所示: docker […]