Moodle can't magically send email. You need to have access to a mail service of some sort and Moodle needs to be configured to work with that.
The server it runs on might (rarely) be able to send mail but that's not going to be the case with Docker containers.
So, if you've done nothing to configure email in Moodle then that's why email isn't working.
The server it runs on might (rarely) be able to send mail but that's not going to be the case with Docker containers.
So, if you've done nothing to configure email in Moodle then that's why email isn't working.