Open robertogyn19 opened 10 years ago
@pilwon any idea about this? I'm getting exit code 100 without any env variables (run command is sudo docker run -d -p 27017:27017 --name=mongo dockerfile/mongodb
)
same here, container always exits with code 100 :(
same here, the image used to work but now I'm getting exits w/ code 100
May be it's because of Insufficient free space for journal files. It may not be the case for everyone, but freeing up some space worked for me
^ i believe my solution to this was running with --smallFiles
Same issue here. --smallFiles doesn't fix this issue for me. Anybody still having issue?
my docker-compose.yml file is like this
database:
image: mongo:2.6
command: "--smallfiles"
volumes:
- data/mongodb:/data/db
ports:
- "27017:27017"
For me the problem was that I shut down my computer without shutting down the container properly.
When starting the container an internal problem happened with the mongo. I SSH'ed into the machine and deleted a lock file and then the container started all right for me.
same here, docker run
is ok but exits with code 100 with docker-compose :(
work around available - https://github.com/docker-library/mongo/issues/74
thanks @m-amr! works for me.
@jovanialferez I think it is not working as expected if you try to open data/db you will found it empty. please check it ? I have deleted my solution because it is not working as expected.
@m-amr yes, it works.. it created data/mongo
on my host (windows 10 pro) which maps to data/db
inside the container which is not empty in my case.
@m-amr here is a snippet from my docker-compose.yml
file:
mongo:
image: mongo:latest
ports:
- "27017:27017"
mongoclient:
image: mongoclient/mongoclient
ports:
- "3000:3000"
volumes_data:
image: tianon/true
volumes:
- ./data:/data
@jovanialferez but the db directory is empty ? can you check it ?
@m-amr the db directory inside the container is not empty.
@m-amr some files inside the container isnt visible in the host though.
@m-amr i have same problem, this solution is not working for me =(
Is there a way to tell docker or mongodb to exit with a more useful message than just the error code 100. That code could mean a plethora of problems. Unfortunately the docker and mongodb logs are empty.
The container does not start when configure env LANG="en-US.UTF-8".