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

update-ca-certificates: not found #2177

Open
rpaterson opened this issue Dec 11, 2024 · 2 comments
Open

update-ca-certificates: not found #2177

rpaterson opened this issue Dec 11, 2024 · 2 comments

Comments

@rpaterson
Copy link

Environment

  • Platform: Linux
  • Docker Version: 27.3.1, build ce12230
  • Node.js Version: 18.20.5
  • Image Tag: node:18.20.5-alpine3.21

Expected Behavior

update-ca-certificates utility should be present and run successfully.

Current Behavior

RUN update-ca-certificates fails with "update-ca-certificates: not found":

 => ERROR [4/8] RUN update-ca-certificates                                                                                                                                               0.2s
------                                                                                                                                                                                        
 > [4/8] RUN update-ca-certificates:
0.159 /bin/sh: update-ca-certificates: not found
------
Dockerfile:17
--------------------
  15 |     
  16 |     COPY schema/global-bundle.pem /usr/local/share/ca-certificates/global-bundle.pem
  17 | >>> RUN update-ca-certificates
  18 |     
  19 |     WORKDIR /card
--------------------
ERROR: failed to solve: process "/bin/sh -c update-ca-certificates" did not complete successfully: exit code: 127

Possible Solution

Steps to Reproduce

Additional Information

RUN update-ca-certificates works on node:18.20.5-alpine3.20, this regression was introduced in node:18.20.5-alpine3.21

@avalor1
Copy link

avalor1 commented Dec 11, 2024

same here with node:20-alpine3.21. Rolled back to 3.20 for now

@LaurentGoderre
Copy link
Member

LaurentGoderre commented Dec 11, 2024

It's possible that the script was installed with ca-certificates by default in previous version and it is not the case with the new one. You can fix this by explicitly installing ca-certificate.

RUN apk add ca-certificates && update-ca-certificates

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