{"id":16018847,"url":"https://github.com/nanmu42/miktex-docker","last_synced_at":"2026-04-24T16:33:36.039Z","repository":{"id":70181208,"uuid":"214592393","full_name":"nanmu42/miktex-docker","owner":"nanmu42","description":"Dockerized MiKTeX, with preinstalled Chinese and Makefile support","archived":false,"fork":false,"pushed_at":"2019-10-12T06:55:32.000Z","size":3,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T11:41:47.595Z","etag":null,"topics":["docker","latex","miktex","pdflatex"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/nanmu42/miktex-docker","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nanmu42.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-12T06:35:16.000Z","updated_at":"2024-03-23T19:18:44.000Z","dependencies_parsed_at":"2023-02-21T11:46:13.538Z","dependency_job_id":null,"html_url":"https://github.com/nanmu42/miktex-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanmu42%2Fmiktex-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanmu42%2Fmiktex-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanmu42%2Fmiktex-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanmu42%2Fmiktex-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nanmu42","download_url":"https://codeload.github.com/nanmu42/miktex-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247282658,"owners_count":20913408,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","latex","miktex","pdflatex"],"created_at":"2024-10-08T17:01:10.260Z","updated_at":"2026-04-24T16:33:35.972Z","avatar_url":"https://github.com/nanmu42.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dockerized MiKTeX\n\nThis image allows you to run MiKTeX on any computer that supports Docker.\n\nThis image is forked from https://github.com/MiKTeX/docker-miktex, with Chinese fonts and Makefile tools preinstalled.\n\n## Obtaining the image\n\nGet the latest image from the registry:\n\n    docker pull nanmu42/miktex-docker\n\n## Using the image\n\n### Volumes\n\n#### Input files\n\nThe host directory containing the input files must be mounted to the\ncontainer path `/miktex/work`.\n\nTo mount the current host working directory, you would pass option `-v\n$(pwd):/miktex/work` to the Docker `run` command.\n\n#### Package files\n\nThe container image contains a bare MiKTeX setup and MiKTeX is\nconfigured to install missing package files in the container directory\n`/miktex/.miktex`.  It is recommended that you mount this directory to\na dedicated Docker volume.\n\n### Running as `root` or not\n\nBy default, all commands inside the container are executed as `root`.\n\nIt is possible to execute as a dedicated host user by\nsetting the container environment variables `MIKTEX_GID` and `MIKTEX_UID`.\n\nTo execute as the current user, you would pass options `-e MIKTEX_GID=$(id\n-g)` and `-e MIKTEX_UID=$(id -u)` to the Docker `run` command.\n\n### Example\n\nFirst, create a Docker volume named `miktex`:\n\n    docker volume create --name miktex\n\nThis volume will be used to mount the the container directory\n`/miktex/.miktex` in subsequent runs.\n\nProvided that your main input file is located in the current working\ndirectory, you can run `pdflatex` as follows:\n\n    docker run --rm -ti \\\n      -v miktex:/miktex/.miktex \\\n      -v $(pwd):/miktex/work \\\n      -e MIKTEX_GID=$(id -g) \\\n      -e MIKTEX_UID=$(id -u) \\\n      nanmu42/miktex-docker \\\n      pdflatex main.tex\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanmu42%2Fmiktex-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnanmu42%2Fmiktex-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanmu42%2Fmiktex-docker/lists"}