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

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.

主站蜘蛛池模板: 太原市| 临城县| 忻州市| 乌鲁木齐县| 绵竹市| 读书| 鄄城县| 海城市| 拉孜县| 山东| 通化市| 嘉荫县| 密山市| 嘉定区| 临江市| 淮安市| 元江| 旬阳县| 鲁甸县| 中牟县| 大关县| 石棉县| 高碑店市| 剑川县| 公主岭市| 珲春市| 封丘县| 宣城市| 鹤山市| 柘城县| 金阳县| 昌江| 霍林郭勒市| 鄱阳县| 章丘市| 兴城市| 昌平区| 平塘县| 毕节市| 昌吉市| 谷城县|