admin管理员组文章数量:1197406
I called shutdown command inside container (with docker exec -it **** bash) and after that container keeps restarting and not starting.
In the logs It says;
{"t":{"$date":"2025-01-23T02:24:58.606+00:00"},"s":"E", "c":"NETWORK", "id":23024, "ctx":"initandlisten","msg":"Failed to unlink socket file","
attr":{"path":"/tmp/mongodb-27017.sock","error":"Operation not permitted"}}
I can't access container since it's not started, and there is no /tmp/mongodb-27017.sock file in local system. so stuck here with no solution.
I've tried to start and stop container normally restarted mongodb service tried to start with different entrypoint but couldn't find a way to delete that .sock file.
With docker inspect, I found the volume of the container and tried to run it with a different name. Container started but there was only default databases so I was afraid.
Any recommends would be great. Thank you.
本文标签: dockerMongoDB container not starting and cant find tmpmongodb27017sockStack Overflow
版权声明:本文标题:docker - MongoDB container not starting and cant find tmpmongodb-27017.sock - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738529380a2093296.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论