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

curl not working in golang:1.20.5 #470

Closed
chensun opened this issue Jun 21, 2023 · 1 comment
Closed

curl not working in golang:1.20.5 #470

chensun opened this issue Jun 21, 2023 · 1 comment

Comments

@chensun
Copy link

chensun commented Jun 21, 2023

With golang:1.20.5 image, we got error running curl command:

curl: (6) getaddrinfo() thread failed to start

Related: kubeflow/pipelines#9650

Downgrading to golang:1.20.4 fixes the issue.

@yosifkit
Copy link
Member

I'd guess that it is Docker with libseccomp; a newer syscall used in Debian Bookworm packages/libs is being blocked.

libseccomp lets you configure allowed syscalls for a process. Docker sets a default seccomp profile for all containers such that only certain syscalls are allowed and everything else is blocked (so, newer syscalls that are not yet known to libseccomp or docker are blocked).

  • verify that it is libseccomp by running the Bookworm-based image with --security-opt seccomp=unconfined
  • one fix:
    • update libseccomp and docker on the host running the containers
  • one workaround:
    • switch to the *bullseye images (in the golang images, these will continue to be maintained/updated until the earliest of the respective Golang end of life or the next Debian release, Debian Trixie)

If it is libseccomp, then it is a duplicate of #467.

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

3 participants