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

Fix Docker Illegal instruction (core dumped) #163

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Conversation

kingster
Copy link
Member

@kingster kingster commented Sep 5, 2022

# docker run -it ghcr.io/flipkart-incubator/dkv:pr-163
Unable to find image 'ghcr.io/flipkart-incubator/dkv:pr-163' locally
pr-163: Pulling from flipkart-incubator/dkv
76dff75df4d9: Pull complete
3e8c90a1c4bb: Pull complete
b3662c105080: Pull complete
ad5dcb7dd592: Pull complete
5752150a0cf9: Pull complete
8d7d8bc43bff: Pull complete
699b52b4a1e6: Pull complete
a8858308aa39: Pull complete
45b7de3434fa: Pull complete
94d250ed93ef: Pull complete
0c54576685c2: Pull complete
Digest: sha256:bea0ef342a64dd030c86e04d3a6915c1dde389de084f2ee0973f8d5a8e0812c7
Status: Downloaded newer image for ghcr.io/flipkart-incubator/dkv:pr-163



# docker run -it ghcr.io/flipkart-incubator/dkv:pr-163 /bin/bash
root@0167afffe78c:/go# dkvsrv
Illegal instruction (core dumped)

This fails since during build we get the warnings which needs the exact version glibc availability of at runtime.

Using 'getgrouplist' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
Using 'getgrgid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking

@kingster kingster changed the title Set CGO_ENABLED=0 Docker: switch base image to golang:1.18-buster Sep 5, 2022
@kingster kingster marked this pull request as ready for review September 5, 2022 11:16
@kingster kingster marked this pull request as draft September 5, 2022 13:28
@kingster kingster changed the title Docker: switch base image to golang:1.18-buster Fix Docker Illegal instruction (core dumped) Sep 5, 2022
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.

1 participant