Comments (8)
You are probably running out of hard drive space on the boot2docker vm. This might help clean up untagged images to clear up some space: docker images --filter dangling=true -q | sort -u | xargs docker rmi
.
from mongo.
I tried everything and I had no success until realize that /mnt/sda1
was full after accessing my boot2docker instance through docker-machine.
Seems that, sometimes, docker doesn't clean completely the containers after I remove them, so there were still some volumes there, even after the restart.
I end up using this https://github.com/chadoe/docker-cleanup-volumes to clean it up and it worked like a charm, I really think this is not a problem to be reported on this project, despite I still don't get why only the Mongo containers (I tried 3.0 and 3.1) could get this kind of error.
from mongo.
MongoDB gets this because they pre-allocate very large files for the database. Use docker rm -v
to make sure volumes are cleaned up when deleting a container.
from mongo.
Hi Guys. Help me here i have installed a dockerized mongodb and meteor, and my container is increasing with a gig almost everyday. How can I handle this, see images below for reference. i want to preserve the images.
from mongo.
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.
from mongo.
@agamrafaeli Can you kindly elaborate where is the lock file that you mentioned in your post. I SSH'ed into the machine but am not able to track the location of the lock file you mentioned.
from mongo.
I'm having the same issue on:
-> Docker For Mac Version 1.12.3-beta30.1 (13946)Channel: Betaf94d037b71
-> tutum/mongodb.
Since I can't manage the VM in Docker For Mac directly as that's how it's set up, I am unable to use a few of the workarounds mentioned in dockerfile/mongodb#9 .
The error on running 'docker-compose up' (this error is also generated by a minimal docker run command as well) was:
db_1 | [initandlisten]
db_1 | [initandlisten] ERROR: Insufficient free space for journal files
db_1 | [initandlisten] Please make at least 3379MB available in /data/db/journal or use --smallfiles
db_1 | [initandlisten]
db_1 | [initandlisten] exception in initAndListen: 15926 Insufficient free space for journals, terminating
db_1 | [initandlisten] dbexit:
db_1 | [initandlisten] shutdown: going to close listening sockets...
db_1 | [initandlisten] shutdown: going to flush diaglog...
db_1 | [initandlisten] shutdown: going to close sockets...
db_1 | [initandlisten] shutdown: waiting for fs preallocator...
db_1 | [initandlisten] shutdown: lock for final commit...
db_1 | [initandlisten] shutdown: final commit...
db_1 | [initandlisten] shutdown: closing all files...
db_1 | [initandlisten] closeAllFiles() finished
db_1 | [initandlisten] journalCleanup...
db_1 | [initandlisten] removeJournalFiles
db_1 | [initandlisten] shutdown: removing fs lock...
db_1 | [initandlisten] dbexit: really exiting now
db_1 | => Waiting for confirmation of MongoDB service startup
db_1 | => Waiting for confirmation of MongoDB service startup
db_1 | => Waiting for confirmation of MongoDB service startup
Since I'm using the new(ish) Docker For Mac app, instead of the old docker-machine approach, it's a little unclear at first glance how I'll do the workaround of rebuilding the VM, and restarting the Docker app isn't helping. Also, restarting my machine completely didn't help.
Incidentally, it didn't help to try the suggestion to run:
docker images --filter dangling=true -q | sort -u | xargs docker rmi
from mongo.
Closing old issue. Feel free to comment on further troubleshooting if you feel this was closed in error or on the solution to help users running into the same problem.
(related lock file issue #62)
from mongo.
Related Issues (20)
- Considering updating the documentation to state that the default configuration of this container is insecure HOT 6
- PGP KEYS expired for Mongodb v3.6 HOT 2
- CVE-2023-29403 HOT 3
- Add an example to documentation for "Initializing a fresh instance" HOT 1
- docker run mongo failed
- Mongo 6.0+ Fails to Run Using WSL HOT 6
- Is it possible Docker without WSL?
- Need help with CVE-2023-24538, CVE-2023-24540, CVE-2024-21626 and CVE-2023-27561 HOT 4
- Not connecting in the mongodb compass - getaddrinfo ENOTFOUND db-mongo-node17 HOT 6
- Mongo container sends network requests to mysterious EC2 servers at AWS HOT 9
- MongoDB container not always initialising after clearing volumes HOT 1
- 7.0.7 tag is missing linux/arm64 image HOT 1
- mongod:6.0.13 - Failed during mongod binary build in docker image.
- docker PIDS keeps increasing at 7.0.8 HOT 1
- Can't connect apps to MongoDB inside docker in Linux HOT 2
- `ENTRYPOINT` documentation HOT 1
- The docker container is throwing connection error if host machine is also running a mongodb on port 27017.
- Docker encountered an exited while in use
- mongo in the container does not properly listen on IPv6
- custom mongod.conf file append to docker mongo it restarts HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mongo.