MongoDB Docker container start and then exits itself with non Docker error codes

417 Views Asked by At

I have 3 containers, Ubuntu 18.04 with some softwares, mongodb and cassandra. I'm able to start Ubuntu normally, but when I try to start mongodb it exits itself right after the start.

I checked /var/lib and there is no docker directory over there, so I ran docker container logs mongodb > logMongodb.log and this show up(took only the end of it): https://pastebin.com/riHDKBEy

This line cought my attention:

 {"t":{"$date":"2020-09-30T14:55:39.882+00:00"},"s":"E",  "c":"STORAGE",  "id":20568,   "ctx":"initandlisten","msg":"Error setting up listener","attr":{"error":{"code":9001,"codeName":"SocketException","errmsg":"Permission denied"}}}

But I don't knnow exactly what it means and how to fix it...

1

There are 1 best solutions below

1
On

you should try an other tag for your mongodb image. it work for me with the focal tag