It’s because your PHP isn’t correctly configured with SSL root ca certificates.
The Docker images we suggest you use come pre-configured correctly. If you’ve chosen to do a custom install, then you need to install them yourself. It’s covered in the FAQ here: