-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Getting error on "go build" #4496
Comments
Installed linux. Still get the error :( |
It looks like If you change your Dockerfile to begin with FROM golang:1.23.2 AS base it should work. Now, you might have the same issue locally (the solution is to install gcc). |
CGO_ENABLED=1 also helped |
This is generally not necessary, and won't help if a C compiler is not installed. With a Dockerfile based on yours above, adding
but at least it makes it clear what is missing. |
Description
I'm trying to build an example of using libcontainer. My host machine is windows. I am aware that this library only works under Linux, therefore I've tried building it with GOOS=linux and docker, getting the same error.
Steps to reproduce the issue
Docker image to reproduce:
Describe the results you received and expected
The error:
What version of runc are you using?
1.2.0
Host OS information
Host kernel information
The text was updated successfully, but these errors were encountered: