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
FROM alpine:3.6
RUN apk update && apk add ca-certificates
#continue with the rest here
CMD ["/app"]