![]() Now Run the following commands to reload systemctl and restart docker daemon. Now we need to Create a “daemon.json” in below mentioned location $ sudo nano /etc/docker/daemon.json And add the following content to it. So i will explain one of them which i'm using daily basis. There are so many ways to add container registry to docker daemon as per different operating systems. If you are using docker registry other than docker hub to store images then you need to add that container registry to your local docker daemon and kubernetes Docker Nodes also. ![]() Then, we start MongoDB server in dforeground mode so that we can see logs in “stdout” of container.īuilding a MongoDB Docker Custom Image $ docker build -t mongo:v3.0 Adding Container Registry to Docker Daemon Next, we expose 27017 port for incoming requests to MongoDB server. Next, we mount Volume “/data/db” for persistent storage of container. We have created this dockerfile for MongoDB Version 3.0 for some compatibility reasons with Rocket Chat Application. This MongoDB image has a base image of Ubuntu but we can also use official docker image of MongoDB. RUN apt - key adv-keyserver hkp: //:80 -recv 7F0CEB10
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |