Use docker mongo container to connect to remote mongo db

  • fennng 

If you would like to use mongo shell to connect to your mongodb but you don’t bother to install mongo client. You can use following command if you have docker installed.

 docker run -it mongo mongo mongodb_addr -u username -p password