![]() A new container is created based on the mongo image.The image is found and downloads each layer.Docker does not find the mongo image locally so it next checks.Docker looks for the mongo image locally.So what exactly is happening here? These steps give a brief summary. One we ran the command above, we saw quite a bit of output in the terminal. Status: Downloaded newer image for mongo:latestĠ8190185820c9b1d513375f9ff011e4042fae95487fd3bcbc3e9c18b5048dc99 What Happened When We Ran docker run –name mongo -d mongo With Docker installed and running, spinning up a Mongo container is done using the command MINGW64 ~ Once it is up and running in a container, we can connect to it in a shell and test out some of the common Mongo commands. ![]() In this tutorial, we’ll use Docker to launch a container running MongoDB. The documents consist of key-value pairs which are the basic unit of data in MongoDB. Rather than using tables and rows like traditional relational databases, MongoDB makes use of Collections and Documents. MongoDB is a document-based NoSQL database that is good for high volume data storage.
0 Comments
Leave a Reply. |