Giter Site home page Giter Site logo

Comments (7)

pward123 avatar pward123 commented on May 29, 2024

I forgot to mention that if I run rs.initiate() again against the new container, everything starts working again.

from mongo.

tianon avatar tianon commented on May 29, 2024

Can you run "docker diff" on the container to see if it's modified any
files in the R/W layer?

from mongo.

md5 avatar md5 commented on May 29, 2024

You can check whether anything has changed before doing your docker rm mongo with the docker diff mongo command. That will show you any changed files against the base mongo image that happened outside of volumes.

I suspect your replicaset issue is actually related to the transient hostname being used by the container. You could try using the -h flag to docker run to set a hostname inside your container.

from mongo.

md5 avatar md5 commented on May 29, 2024

jinx @tianon

from mongo.

pward123 avatar pward123 commented on May 29, 2024

Ahh, didn't know about the docker diff command. That's pretty handy.

A /data
A /data/db
C /root
A /root/.bash_history
A /root/.dbshell
A /root/.mongorc.js
C /tmp
A /tmp/mongodb-27017.sock
C /var
A /var/db

I tried -h but that doesn't seem to help either. If you like I can try to create a github repo duplicating it with vagrant

from mongo.

md5 avatar md5 commented on May 29, 2024

Does your mongo_data container actually have a volume at /data/db?

from mongo.

pward123 avatar pward123 commented on May 29, 2024

Doh, you're right on. I must've goofed when creating the data container. I recreated it making sure I had the correct -v param. That fixed the problem.

Thanks for the assist

from mongo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.