restart mongodb docker with auth
<p>I have a mongoDB docker with name <code>hi_mongo</code> and id <code>123456789</code>
I have some data already stored in the DB. I have stopped it sometime back and restarted with the command:<br><code>docker restart 123456789</code></p>

<p>But now I want to restart this docker with authorization enabled. How to do it without making a new mongoDB docker.</p>

<p>What I have tried so far is - enter this mongoDB container using:<br><code>docker exec -it 123456789 /bin/bash</code><br>and tried editing the <code>/etc/mongo.conf.orig file</code> and setting the <code>authorization:'enabled'</code> thinking that when I restart the docker from host mongod will restart with auth enabled but that is not the case.</p>