Skip to main content
Generally, every time you run bin/up, using-the-toolkit will automatically update the ourt TeX Live full image. To avoid manual updates, you can automate updates to your TeX Live Sandbox image using the following script. Add it as a cron job, making sure the cron user has permission to run docker. Run crontab -e to add the following line to the end.
crontab -e
flock -n skips a run while the previous one still holds the lock, so a slow pull never piles up.
/usr/local/bin/pull-texlive.sh
Why hourly rotation instead of pulling everything at once: the tag is derived from the wall clock (hours since the epoch, modulo the number of tags), so the job is stateless — nothing records “where we left off”, and the cycle realigns by itself after a reboot or a missed hour. Each run touches a single tag; when the registry digest has not changed, the pull is only a manifest check (Image is up to date) and finishes in seconds. A real update downloads at most one image per hour, capped by timeout 50m, and docker image prune -f drops the layers orphaned by the tag moving. To check that the sync is healthy:
When a new TeX Live release is published, append its tag to the TAGS array — the rotation length adapts automatically. Hours when the host is powered off are skipped, not queued; the affected tags simply refresh on their next turn.
Last modified on October 4, 2026