Sometimes you might need multiple instances of mongo or mysql installed. Instead of installing them locally, just user the dockerimage
Having the databases on docker containers gives me flexibility in swaping databases pretty easily.
Before starting, to persist the databases, we need to store the volumes somewhere. I like to make a "databases" folder in my home folder, but you can put them wherever you want. Just make sure to persist them