Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libc.so.6: version `GLIBC_2.3x' not found (from binaries built in new bookworm based images but run on older distros) #466

Closed
zhiweiyin318 opened this issue Jun 15, 2023 · 2 comments

Comments

@zhiweiyin318
Copy link

I used golang:1.20 which built yesterday to build my image, my image failed to run with the errors

/placement: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by /placement)
/placement: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by /placement)

the golang:1.20 digest: golang@sha256:3164c26b2e170b18e2325aa0554699e7bb19a658333601659c04838855897f7a

when I changed to 1.20.4, everything is ok.

@tianon tianon changed the title GLIBC not found in the golang:1.20 libc.so.6: version `GLIBC_2.3x' not found (from binaries built in new bookworm based images but run on older distros) Jun 15, 2023
@tianon tianon pinned this issue Jun 15, 2023
@tianon
Copy link
Member

tianon commented Jun 15, 2023

This is unfortunately not unexpected. See also docker-library/official-images#14857 (comment):

They can also specify the Debian version of the Golang images (only the two most recent are updated/supported): golang:1.20.5-bullseye or golang:1.20.5-bookworm (and golang:1.20-bullseye, etc).

If you don't need cgo in your binary, it should also work to specify CGO_ENABLED=0 explicitly.

@zhiweiyin318
Copy link
Author

thanks @tianon

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

No branches or pull requests

2 participants