Example error
The Git error resembles:Root cause
Slim base images such asnode:22-bookworm-slim do not always include CA certificates. Without a trusted certificate authority bundle, Git cannot verify the remote server’s SSL certificate.
Install CA certificates
Addca-certificates to the packages installed by your Dockerfile:
Choose another base image
Alternatively, use a base image that includes CA certificates:node:22-alpinenode:22-bookworm, using the full image instead of the slim variant
apk instead of apt-get, and package names or availability may differ.
Docker sandbox tutorial
Learn how to build and run Docker images in sandboxes.
Sandbox proxy and network
Review sandbox networking configuration.