devcontainers / images

Repository for pre-built dev container images published under mcr.microsoft.com/devcontainers
https://containers.dev
MIT License
1.11k stars 411 forks source link

SSL certificate problem: unable to get local issuer certificate #1080

Closed aguckenber-chwy closed 1 month ago

aguckenber-chwy commented 1 month ago

A recent update to the mcr.microsoft.com/vscode/devcontainers/python:3.10-bullseye broke the curls we had within the build.

0.123   % Total    % R
[2024-05-29T16:46:50.146Z] eceived % Xferd  Average Speed   Time    Time     Time  Current
0.123                                  Dload  Upload   Total   Spent    Left  Speed
0.123 
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   138  100   138    0     0   2300      0 --:--:-- --:--:-- --:--:--  2300
0.260 
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
0.261 curl: (60) SSL certificate problem: unable to get local issuer certificate
0.261 More details here: https://curl.se/docs/sslcerts.html
0.261 
0.261 curl failed to verify the legitimacy of the server and therefore could not
0.261 establish a secure connection to it. To learn more about this situation and
0.261 how to fix it, please visit the web page mentioned above.

This image worked:

mcr.microsoft.com/vscode/devcontainers/python           3.10-bullseye           1d9f0b0c4fe4   4 weeks ago    1.31GB

This one does not:

mcr.microsoft.com/vscode/devcontainers/python           3.10-bullseye           1c2d7c0c6667   3 weeks ago    1.37GB
FROM mcr.microsoft.com/vscode/devcontainers/python:3.10-bullseye AS base

RUN apt-get update -y && \
    apt-get install -y --no-install-recommends \
    curl \

RUN  curl -LO https://dl.k8s.io/release/v1.25.11/bin/linux/arm64/kubectl && \
          curl -LO https://dl.k8s.io/v1.25.11/bin/linux/arm64/kubectl.sha256
aguckenber-chwy commented 1 month ago

Whats weird actually is FROM mcr.microsoft.com/vscode/devcontainers/python:1.1.8-3.10-bullseye AS base fails non stop. FROM mcr.microsoft.com/vscode/devcontainers/python:1.1.9-3.10-bullseye AS base fails on the first try but a retry normally works. Could this be a VSCode issue instead?

Version: 1.89.1 (Universal)
Commit: dc96b837cf6bb4af9cd736aa3af08cf8279f7685
Date: 2024-05-07T05:14:24.611Z
Electron: 28.2.8
ElectronBuildId: 27744544
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Darwin arm64 23.5.0
aguckenber-chwy commented 1 month ago

Nvm, I believe this was a network fire wall issue.