Yes, Docker is cool. This probably makes me a geek, but who cares. Docker is cool! Why is it cool? Well, let’s start with the fact that you don’t need to worry about installations any more!
You can run a ready-made application image in matter of seconds. No need to executed multiple setup scripts, edit configuration files or read tedious installation guides…
So what do you need to do? Just install Docker engine on your machine/laptop and you are all set.
Now lets say you want to run MongoDB. No problem! Go to Docker Hub and search for the MongoDB image. You will get a lot of results for all kinds of MongoDB images from different owners. Try and see if you find an official image, or at least an image with a decent amount of downloads.
After you choose the preferred MongoDB image, simply run it through the simple Docker CLI:
docker run <image name>
There are usually some additional parameters you need to provide to the command line, like daemonizing it (-d parameter) and mapping ports (-p). These parameters are documented in the image Docker Hub page, so it is usually a simple copy & paste is needed.
For example, to run a TumTum MongoDB image this is the command line:
docker run -d -p 27017:27017 -p 28017:28017 tutum/mongodb
Well, hope it helps to kickstart your Docker journey. Let me know if you need any help.