wkhtmltopdf in Docker: How to fix common container errors in 2026
The wkhtmltopdf project was archived in January 2023, with its last official packages released in May 2023 targeting Debian 12 and Ubuntu 22.04, leaving users on newer distros facing recurring errors. On Alpine Linux, the binary fails to run because it is compiled against glibc while Alpine uses musl, making the two incompatible with no reliable workaround. On Debian 13 or Ubuntu 24.04, older Dockerfiles that fetch the 0.12.6-1 release fail because that build depends on OpenSSL 1.1, which has been removed from modern distro archives. The recommended fix is to use the final 0.12.6.1-3 release on a Debian Bookworm or Ubuntu Jammy base image, as those builds were compiled against OpenSSL 3. Users are also warned that CVE-2022-35583, a server-side request forgery vulnerability, remains permanently unpatched, so untrusted HTML should never be passed to the tool.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in