Skip to content

fix: resolve Docker glibc version mismatch (issue #5) - #6

Merged
sionsmith merged 1 commit into
mainfrom
fix/issue-5-docker-glibc-mismatch
Jan 12, 2026
Merged

fix: resolve Docker glibc version mismatch (issue #5)#6
sionsmith merged 1 commit into
mainfrom
fix/issue-5-docker-glibc-mismatch

Conversation

@sionsmith

Copy link
Copy Markdown
Contributor

Summary

  • Pin Docker builder image from rust:latest to rust:bookworm to match runtime's Debian version
  • Add smoke tests to CI to catch runtime issues before publishing
  • Add Docker build validation to PR workflow

Root Cause

The rust:latest image recently upgraded from Debian 12 (Bookworm) to Debian 13 (Trixie), which ships with glibc 2.41. The runtime image debian:bookworm-slim only has glibc 2.36. Since glibc is only forward-compatible (not backward), binaries compiled against 2.41 fail with:

kafka-backup: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.39' not found

Changes

File Change
Dockerfile Pin builder to rust:bookworm, add explanatory comments
docker-publish.yml Add smoke test before pushing to Docker Hub
test.yml Add Dockerfile to trigger paths, new docker-build job

Testing

  • Built Docker image locally with docker build -t kafka-backup:test .
  • Verified binary runs: docker run --rm kafka-backup:test --versionkafka-backup 0.4.0
  • Verified glibc matches: docker run --rm --entrypoint ldd kafka-backup:test --versionglibc 2.36

After Merge

A new release tag will be needed to publish the fixed Docker image to Docker Hub.

Closes #5

🤖 Generated with Claude Code

Pin builder image to rust:bookworm to match runtime's Debian version.
The rust:latest image uses Debian 13 (Trixie) with glibc 2.41, while
debian:bookworm-slim uses glibc 2.36. Binaries compiled against newer
glibc cannot run on older versions.

Also adds CI safeguards to prevent regression:
- Smoke test in docker-publish.yml before pushing images
- New docker-build job in test.yml for PR validation
- Dockerfile changes now trigger the test workflow

Closes #5

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@sionsmith
sionsmith merged commit 31cfc09 into main Jan 12, 2026
17 checks passed
@sionsmith
sionsmith deleted the fix/issue-5-docker-glibc-mismatch branch January 12, 2026 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Question about glibc version in Docker image

1 participant