Tag: mongodb

Mongodb replicaset on gke not working

I’m creating 3 rc for each mongo pod: apiVersion: v1 kind: ReplicationController metadata: labels: name: mongo name: mongo-controller-1 spec: replicas: 1 selector: name: mongo-1 template: metadata: labels: name: mongo-1 type: mongo pod: mongo-1 spec: containers: – image: mongo command: – “/bin/bash” – “-c” – “service mongod stop; mkdir -p /srv/mongodb/db0 && mongod –dbpath /srv/mongodb/db0 –replSet […]

how to set /sys/kernel/mm/transparent_hugepage/enabled to 'never' on coreos

I have just updated MongoDB to the latest 3.2 version on a test CoreOS server. But get this warnings: CONTROL [initandlisten] CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is ‘always’. CONTROL [initandlisten] ** We suggest setting it to ‘never’ CONTROL [initandlisten] CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is ‘always’. CONTROL [initandlisten] ** We suggest setting it to ‘never’ […]

Spring Boot with MongoDB on Docker

In these days, I am trying to deploy my Spring Boot OAuth2 project. It has 3 different modules.(Authentication Server, Resource Server and Front-end) Authentication and Resource servers have own *.yml file for configurations such as mongodb name-port, server profile-ip etc. What I am trying to do exactly? I want to deploy spring boot application on […]

Why this is not working to share a data volume using Docker and MongoDB?

In order to share the data folder between a container running Mongo DB and a Windows Host, I tried the following approach: docker run -d -v /$(pwd)/data:/data mongo Since I found out on this issue that on Windows we can use refer to the current directory in this way. Now, although no errors are shown, […]

Docker : multiples linked containers for each customers

I’m developing a platform that monitor emails, save the results in a Mongo database (through Parse-Server) and display the results on a web app (using AngularJS). Basically, for each customer i want a SMTP server, a Parse Server, a MongoDB & a web platform. I thought of using Docker for more scalability and the idea […]

Docker Java Image cannot connect to Docker Mongo

I’m getting timeout errors from my Java application (Spring Boot) that uses a MongoDB, the connection works when I run the jar, however when it is Dockerized, the connection times out. I’m not sure if I’m just not configuring something correctly with Docker?

Docker: connect EHOSTUNREACH when I connect to mongo container

I’m new to docker and I just made MongoDB and Node.js container. First I made and run mongoDB container. $ docker run mongo 2016-10-04T07:41:12.864+0000 I CONTROL [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=f3b51681966e 2016-10-04T07:41:12.865+0000 I CONTROL [initandlisten] db version v3.2.10 2016-10-04T07:41:12.865+0000 I CONTROL [initandlisten] git version: 79d9b3ab5ce20f51c272b4411202710a082d0317 2016-10-04T07:41:12.865+0000 I CONTROL [initandlisten] OpenSSL version: […]

Strong-PM in Docker Container App Connect to Host MongoD

I’ve got a Docker container running Strong-PM on an Ubuntu 16.04 Server. The host already runs mongod listening on let’s say :37531 The Node/Express app I’m running on the container never “sees” mongo and chokes. The Docker Image is built/launched virtually from the docker-strongloop.sh script. I’ve added my mongo ports to the run: $DOCKER run […]

CoreOS: dockerized mongo instance connection refused from another dockeried mongo

I’ve set up two services on my CoreOS instance. Briefly, the first one is an official mongo container and the other one is a custom made image that’s trying to connect to a “mongo” instance. – name: living-mongo.service command: start enable: true content: |- [Unit] Description=Mongo Author=Living After=docker.service [Service] Restart=always RestartSec=10s ExecStartPre=-/usr/bin/docker stop mongo ExecStartPre=-/usr/bin/docker […]

Docker container failing to install mongo

I am trying to install Mongo but it’s failing. Here is my Docker file: RUN apt-get install -y –force-yes mongodb-org=2.6.3 && \ service mongod stop RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* VOLUME /data/db RUN echo “mongodb-org hold” | dpkg –set-selections && \ echo “mongodb-org-server hold” | dpkg –set-selections && \ echo “mongodb-org-shell […]

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.