Probably you don’t have correct CA certificates available in the container, so TLS connections can’t be verified.
Try to install
ca-certificates package (package may have a different name, it depends on the used distribution).
Your company inspects TLS connections in the corporate network, so original certificates are replaced by your company certificates. You need to add your company CA certificate to root CA certificates.
Linux (Ubuntu, Debian):
- copy company CA certificate to dir
If your host OS has already preconfigured CA certs correctly (company CA certs included), then you can just mount them as a volume to the container:
docker run \ -v /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt \ ...
Typical CA certs locations: