-
Notifications
You must be signed in to change notification settings - Fork 1.4k
mongo:latest crashes on restart #746
Comments
@vicary you can do the following to attach to the container and do some clean-up: docker@dev:~$ docker start -ai <container-id> simply replace the container-id above with your monogodb container id obtained via |
Thanks for the issue, are volumes enabled? |
Funny enough, I've got the steps to fix this:
Then it can be restarted normally. Since this is a Macbook Air I suspect it is related to the Mac sleep affecting VM state and ultimately killing the mongod process without proper shutdown. |
I'm experiencing the same issue. I use mongodb inside a container to keep my machine clean during development. If I start and stop it using CLI no problem, using Kitematic if I use the stop button I can't restart the container anymore with that error. I'm using Docker toolbox 1.8.1b. No shared volumes enabled, only binded port 27017. |
@virgafox Kitematic shouldn't do anything different than the CLI. |
@FrenchBen The container is always created via CLI, I couldn't find a way to bind ports creating via kitematic. The command is |
@virgafox Thanks for the break down of the issue, which I was able to replicate. I found the source of the #bug and will be pushing a create a patch/PR soon to get this fixed! |
@FrenchBen Thanks man. Maybe this is a little OT, but If I installed all via docker toolbox, how do I upgrade when the update is out? thanks again |
I believe you'll be able to download the latest toolbox and run the installer from it. |
@FrenchBen nice |
Seems like an issue with Official images. The team is notified. |
It runs well on the first download, but when I stop it never start again.
Here is the last lines of stdout.
Sorry I'm quite new to docker, while you guys are fixing this, can I like ssh in and delete the lock file myself? How can I do so?
The text was updated successfully, but these errors were encountered: