官术网_书友最值得收藏!

There's more..

If you ever wish to debug the container, you can always run the container in the foreground by passing the -it parameters in place of -d. Additionally, try running the following command and check the output:

docker logs mymongo

Lastly, I would suggest you have a look at the start scripts used by this container's image to understand how configurations are templatized. It will definitely give you some pointers that will help when you are setting up your own MongoDB container.

With this recipe, we conclude this chapter. I hope these recipes have helped you gear up for getting started with MongoDB. As all things go, no amount of text can replace actual practice. So I sincerely request you to get your hands dirty and attempt these recipes yourself.

In the next chapter, we will take a closer look at MongoDB's indexes and how they can be leveraged to gain a tremendous performance boost in data retrieval.

主站蜘蛛池模板: 辉县市| 睢宁县| 黄浦区| 宿迁市| 宁都县| 五莲县| 恩平市| 开平市| 汝南县| 九江县| 广水市| 宝应县| 莱西市| 遂昌县| 康平县| 通化县| 武陟县| 方城县| 鄂托克旗| 凤城市| 柞水县| 博罗县| 宁国市| 万山特区| 开化县| 凤山县| 新民市| 建德市| 赤壁市| 固原市| 吉首市| 固原市| 泊头市| 兴化市| 婺源县| 安顺市| 包头市| 津市市| 景洪市| 友谊县| 潮安县|