Solution: Add this certificate to the Docker image to make the system trust this kind of certificate.
I use an image based on alpine, and the Dockerfile file is as follows.
When you see the following reminders during the mirror construction, you can ignore them.
Start and enter the container to check cat/etc/SSL/certs/ca-certificates.crt. The self-signed certificate has been added to the ca-certificates. CRT file, and the system has trusted the certificate.
Reference: CA certificate on linux