Closed zhiweiyin318 closed 1 year ago
This is unfortunately not unexpected. See also https://github.com/docker-library/official-images/pull/14857#issuecomment-1591968024:
They can also specify the Debian version of the Golang images (only the two most recent are updated/supported):
golang:1.20.5-bullseye
orgolang:1.20.5-bookworm
(andgolang:1.20-bullseye
, etc).If you don't need
cgo
in your binary, it should also work to specifyCGO_ENABLED=0
explicitly.
thanks @tianon
I used golang:1.20 which built yesterday to build my image, my image failed to run with the errors
the golang:1.20 digest: golang@sha256:3164c26b2e170b18e2325aa0554699e7bb19a658333601659c04838855897f7a
when I changed to 1.20.4, everything is ok.