What message you got when you ran rs.initiate() first time?
Once you start your mongod with replset and run rs.initiate() it should become primary
Check this link.I don’t know about docker
What message you got when you ran rs.initiate() first time?
Once you start your mongod with replset and run rs.initiate() it should become primary
Check this link.I don’t know about docker