I was playing around with Mongodb replica sets and wanted to create the replica sets using docker . Below are the sequence of steps that i did :