If the base image used to build the docker container does not have the CA certificates and you try to connect with an https or secure connection inside a docker container
Just install ca cetificate to your container. For example you are using alpine you can do it as follow