This repo is a simple docker example that runs 'mailcatcher'.
It's based on official 'ruby' image: https://registry.hub.docker.com/_/ruby/
Look inside & run:
MailCatcher runs a super simple SMTP server which catches any message sent to it to display in a web interface.
It's really great for development when you want to test SMTP all the way...