Search code examples
dockerlatextex-live

How to call latex located in docker?


Is it possible to pull texlive image in docker (e.g. https://hub.docker.com/r/texlive/texlive) and use it from my computer instead of installing texlive on my computer?

I like the idea using containers instead of installing software.


Solution

  • This should work something like

    sudo docker run -i --rm --name latex -v "$PWD":/usr/src/app -w /usr/src/app registry.gitlab.com/islandoftex/images/texlive:latest pdflatex essay.tex
    

    Taken from https://nico.dorfbrunnen.eu/de/posts/2020/docker-latex/ (german)

    Check wiki page for docker images: https://gitlab.com/islandoftex/images/texlive/-/wikis/home