MailHog is a fake SMTP server. It catches every email your app tries to send instead of actually delivering it, and shows them in a web UI so you can inspect them.
How to get started with Microsoft SQL Server on Linux using Docker
This blog shows how to use build arguments in Docker Build for different environments