starting
mongodb service is starting, waiting 2 seconds before checking again.
/usr/bin/docker inspect --format="{{if .Config.Healthcheck}}{{print .State.Health.Status}}{{end}}" c52ef7f4023438f1ab52d3ddc69394c62d69922474fde4e22e6f332058b263be
starting
mongodb service is starting, waiting 3 seconds before checking again.
/usr/bin/docker inspect --format="{{if .Config.Healthcheck}}{{print .State.Health.Status}}{{end}}" c52ef7f4023438f1ab52d3ddc69394c62d69922474fde4e22e6f332058b263be
unhealthy
Service container mongodb failed.
Error: Failed to initialize container mongodb/mongodb-atlas-local
Error: One or more containers failed to start.
HI @Martin_Forejt , thanks for reporting this. I can reproduce the same error using the example provided in the docs. I’ll look into this and report back as soon as I can.
Indeed, many docker images where pushed (and updated while they should be inmutable) and it seems the issue is wide spread
Currently, we figured out that 7.0.3-20250205T151413Z is still working as it was before these issue happened
Hope this helps other to mitigate
Maybe it’s related, but trying to follow Getting Started with MongoDB Atlas Local Search Experience Using Docker, the mongodb-atlas-local:latest image suggested in the tutorial shutdowns immediately.
Browsing the Mongo’s dockerhub I saw a lot of image updated today, so I tried with a slightly older one (8.0.3-20250205T151413Z) and now the container stays up as expected.
From a cursory glance the only difference from this and the lastest image, apart from the mongo version, is layer 35: ENV JAVA_TOOL_OPTIONS=-XX:UseSVE=0
@John_Smith12 just re-reading the tutorial, and assuming you’re using the docker-compose.yml example, it looks like the example (in the code repo too) is missing the line hostname: mongodb. Without this, when the container is stopped and then restarted, the container will struggle to find the volume again. If this is what happened, you should be able to get back into a working state by
Delete the container in docker desktop
Or via the terminal
//get the name of the container
docker ps -a
//delete the container
docker rm <name of container or ID>
Docker Compose up
Importantly, when it comes to stopping the container, use docker compose down -v to ensure the data volume persists (assuming you want it to persist, and don’t want to start from scratch each time).
The container with the fixed image seems to be working fine even without the hostname configuration in the docker-compose; I’ll add it nonetheless.
Thank you.