MongoDB docker error: Failed to open /var/log/mongodb/mongod.log

Solution 1:

I had the same issue. I think the permission could be wrong for the folder. Try setting the permission 777 for log and data