Mongod InitDB shutdown error [Docker][MongoDB Community Server]

2023-11-02 18:09:44 {"t":{"$date":"2023-11-02T10:09:44.706+00:00"},"s":"I",  "c":"NETWORK",  "id":23015,   "ctx":"listener","msg":"Listening on","attr":{"address":"/tmp/mongodb-27017.sock"}}
2023-11-02 18:09:44 {"t":{"$date":"2023-11-02T10:09:44.706+00:00"},"s":"I",  "c":"NETWORK",  "id":23015,   "ctx":"listener","msg":"Listening on","attr":{"address":"127.0.0.1"}}
2023-11-02 18:09:44 {"t":{"$date":"2023-11-02T10:09:44.706+00:00"},"s":"I",  "c":"NETWORK",  "id":23016,   "ctx":"listener","msg":"Waiting for connections","attr":{"port":27017,"ssl":"off"}}
2023-11-02 18:09:44 child process started successfully, parent exiting
2023-11-02 18:09:44 {"t":{"$date":"2023-11-02T10:09:44.747+00:00"},"s":"I",  "c":"REPL",     "id":7360102, "ctx":"LogicalSessionCacheRefresh","msg":"Added oplog entry for create to transaction","attr":{"namespace":"config.$cmd","uuid":{"uuid":{"$uuid":"74d4efb0-313e-4d53-a2cc-c58671bad609"}},"object":{"create":"system.sessions","idIndex":{"v":2,"key":{"_id":1},"name":"_id_"}}}}
2023-11-02 18:09:44 {"t":{"$date":"2023-11-02T10:09:44.747+00:00"},"s":"I",  "c":"REPL",     "id":7360100, "ctx":"LogicalSessionCacheRefresh","msg":"Added oplog entry for createIndexes to transaction","attr":{"namespace":"config.$cmd","uuid":{"uuid":{"$uuid":"74d4efb0-313e-4d53-a2cc-c58671bad609"}},"object":{"createIndexes":"system.sessions","v":2,"key":{"lastUse":1},"name":"lsidTTLIndex","expireAfterSeconds":1800}}}
2023-11-02 18:09:44 {"t":{"$date":"2023-11-02T10:09:44.769+00:00"},"s":"I",  "c":"INDEX",    "id":20345,   "ctx":"LogicalSessionCacheRefresh","msg":"Index build: done building","attr":{"buildUUID":null,"collectionUUID":{"uuid":{"$uuid":"74d4efb0-313e-4d53-a2cc-c58671bad609"}},"namespace":"config.system.sessions","index":"_id_","ident":"index-5-6054818767704085297","collectionIdent":"collection-4-6054818767704085297","commitTimestamp":null}}
2023-11-02 18:09:44 {"t":{"$date":"2023-11-02T10:09:44.769+00:00"},"s":"I",  "c":"INDEX",    "id":20345,   "ctx":"LogicalSessionCacheRefresh","msg":"Index build: done building","attr":{"buildUUID":null,"collectionUUID":{"uuid":{"$uuid":"74d4efb0-313e-4d53-a2cc-c58671bad609"}},"namespace":"config.system.sessions","index":"lsidTTLIndex","ident":"index-6-6054818767704085297","collectionIdent":"collection-4-6054818767704085297","commitTimestamp":null}}
2023-11-02 18:09:45 {"t":{"$date":"2023-11-02T10:09:45.527+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:45162","uuid":{"uuid":{"$uuid":"64d21d1a-d345-49e3-81c5-467399d38eb8"}},"connectionId":1,"connectionCount":1}}
2023-11-02 18:09:45 {"t":{"$date":"2023-11-02T10:09:45.541+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn1","msg":"client metadata","attr":{"remote":"127.0.0.1:45162","client":"conn1","doc":{"application":{"name":"mongosh 2.0.2"},"driver":{"name":"nodejs|mongosh","version":"6.0.0|2.0.2"},"platform":"Node.js v20.8.1, LE","os":{"name":"linux","architecture":"x64","version":"5.15.90.1-microsoft-standard-WSL2","type":"Linux"}}}}
2023-11-02 18:09:45 {"t":{"$date":"2023-11-02T10:09:45.576+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:45168","uuid":{"uuid":{"$uuid":"b0b26dcd-3b60-4c1b-a80b-bf9b62fad919"}},"connectionId":2,"connectionCount":2}}
2023-11-02 18:09:45 {"t":{"$date":"2023-11-02T10:09:45.577+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:45180","uuid":{"uuid":{"$uuid":"e0764194-4c53-46ca-b940-d2f153f77f81"}},"connectionId":3,"connectionCount":3}}
2023-11-02 18:09:45 {"t":{"$date":"2023-11-02T10:09:45.579+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn2","msg":"client metadata","attr":{"remote":"127.0.0.1:45168","client":"conn2","doc":{"application":{"name":"mongosh 2.0.2"},"driver":{"name":"nodejs|mongosh","version":"6.0.0|2.0.2"},"platform":"Node.js v20.8.1, LE","os":{"name":"linux","architecture":"x64","version":"5.15.90.1-microsoft-standard-WSL2","type":"Linux"}}}}
2023-11-02 18:09:45 {"t":{"$date":"2023-11-02T10:09:45.581+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn3","msg":"client metadata","attr":{"remote":"127.0.0.1:45180","client":"conn3","doc":{"application":{"name":"mongosh 2.0.2"},"driver":{"name":"nodejs|mongosh","version":"6.0.0|2.0.2"},"platform":"Node.js v20.8.1, LE","os":{"name":"linux","architecture":"x64","version":"5.15.90.1-microsoft-standard-WSL2","type":"Linux"}}}}
2023-11-02 18:09:45 {"t":{"$date":"2023-11-02T10:09:45.584+00:00"},"s":"I",  "c":"NETWORK",  "id":6788700, "ctx":"conn2","msg":"Received first command on ingress connection since session start or auth handshake","attr":{"elapsedMillis":4}}
2023-11-02 18:09:45 {"t":{"$date":"2023-11-02T10:09:45.585+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:45190","uuid":{"uuid":{"$uuid":"e559421e-61b4-4d26-9661-f9f0cd5d112a"}},"connectionId":4,"connectionCount":4}}
2023-11-02 18:09:45 {"t":{"$date":"2023-11-02T10:09:45.597+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn4","msg":"client metadata","attr":{"remote":"127.0.0.1:45190","client":"conn4","doc":{"application":{"name":"mongosh 2.0.2"},"driver":{"name":"nodejs|mongosh","version":"6.0.0|2.0.2"},"platform":"Node.js v20.8.1, LE","os":{"name":"linux","architecture":"x64","version":"5.15.90.1-microsoft-standard-WSL2","type":"Linux"}}}}
2023-11-02 18:09:45 {"t":{"$date":"2023-11-02T10:09:45.602+00:00"},"s":"I",  "c":"NETWORK",  "id":6788700, "ctx":"conn4","msg":"Received first command on ingress connection since session start or auth handshake","attr":{"elapsedMillis":5}}
2023-11-02 18:09:46 {
2023-11-02 18:09:46   db: 'admin',
2023-11-02 18:09:46   collections: Long("1"),
2023-11-02 18:09:46   views: Long("0"),
2023-11-02 18:09:46   objects: Long("1"),
2023-11-02 18:09:46   avgObjSize: 59,
2023-11-02 18:09:46   dataSize: 59,
2023-11-02 18:09:46   storageSize: 4096,
2023-11-02 18:09:46   indexes: Long("1"),
2023-11-02 18:09:46   indexSize: 4096,
2023-11-02 18:09:46   totalSize: 8192,
2023-11-02 18:09:46   scaleFactor: Long("1"),
2023-11-02 18:09:46   fsUsedSize: 452971896832,
2023-11-02 18:09:46   fsTotalSize: 505707229184,
2023-11-02 18:09:46   ok: 1
2023-11-02 18:09:46 }
2023-11-02 18:09:46 {"t":{"$date":"2023-11-02T10:09:46.335+00:00"},"s":"I",  "c":"NETWORK",  "id":22944,   "ctx":"conn3","msg":"Connection ended","attr":{"remote":"127.0.0.1:45180","uuid":{"uuid":{"$uuid":"e0764194-4c53-46ca-b940-d2f153f77f81"}},"connectionId":3,"connectionCount":3}}
2023-11-02 18:09:46 {"t":{"$date":"2023-11-02T10:09:46.335+00:00"},"s":"I",  "c":"NETWORK",  "id":22944,   "ctx":"conn4","msg":"Connection ended","attr":{"remote":"127.0.0.1:45190","uuid":{"uuid":{"$uuid":"e559421e-61b4-4d26-9661-f9f0cd5d112a"}},"connectionId":4,"connectionCount":2}}
2023-11-02 18:09:46 {"t":{"$date":"2023-11-02T10:09:46.335+00:00"},"s":"I",  "c":"-",        "id":20883,   "ctx":"conn1","msg":"Interrupted operation as its client disconnected","attr":{"opId":39}}
2023-11-02 18:09:46 {"t":{"$date":"2023-11-02T10:09:46.335+00:00"},"s":"I",  "c":"NETWORK",  "id":22944,   "ctx":"conn2","msg":"Connection ended","attr":{"remote":"127.0.0.1:45168","uuid":{"uuid":{"$uuid":"b0b26dcd-3b60-4c1b-a80b-bf9b62fad919"}},"connectionId":2,"connectionCount":1}}
2023-11-02 18:09:46 {"t":{"$date":"2023-11-02T10:09:46.336+00:00"},"s":"I",  "c":"NETWORK",  "id":22944,   "ctx":"conn1","msg":"Connection ended","attr":{"remote":"127.0.0.1:45162","uuid":{"uuid":{"$uuid":"64d21d1a-d345-49e3-81c5-467399d38eb8"}},"connectionId":1,"connectionCount":0}}
2023-11-02 18:09:47 {"t":{"$date":"2023-11-02T10:09:47.145+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:40248","uuid":{"uuid":{"$uuid":"cafe2f01-3daa-4831-83b9-29280f86bab9"}},"connectionId":5,"connectionCount":1}}
2023-11-02 18:09:47 {"t":{"$date":"2023-11-02T10:09:47.152+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn5","msg":"client metadata","attr":{"remote":"127.0.0.1:40248","client":"conn5","doc":{"application":{"name":"mongosh 2.0.2"},"driver":{"name":"nodejs|mongosh","version":"6.0.0|2.0.2"},"platform":"Node.js v20.8.1, LE","os":{"name":"linux","architecture":"x64","version":"5.15.90.1-microsoft-standard-WSL2","type":"Linux"}}}}
2023-11-02 18:09:47 {"t":{"$date":"2023-11-02T10:09:47.174+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:40254","uuid":{"uuid":{"$uuid":"c245cb21-4410-42e7-a951-6b42b01206b2"}},"connectionId":6,"connectionCount":2}}
2023-11-02 18:09:47 {"t":{"$date":"2023-11-02T10:09:47.174+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:40270","uuid":{"uuid":{"$uuid":"46f37974-4882-4a36-8ab6-9487d6c0ffdb"}},"connectionId":7,"connectionCount":3}}
2023-11-02 18:09:47 {"t":{"$date":"2023-11-02T10:09:47.178+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn6","msg":"client metadata","attr":{"remote":"127.0.0.1:40254","client":"conn6","doc":{"application":{"name":"mongosh 2.0.2"},"driver":{"name":"nodejs|mongosh","version":"6.0.0|2.0.2"},"platform":"Node.js v20.8.1, LE","os":{"name":"linux","architecture":"x64","version":"5.15.90.1-microsoft-standard-WSL2","type":"Linux"}}}}
2023-11-02 18:09:47 {"t":{"$date":"2023-11-02T10:09:47.179+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn7","msg":"client metadata","attr":{"remote":"127.0.0.1:40270","client":"conn7","doc":{"application":{"name":"mongosh 2.0.2"},"driver":{"name":"nodejs|mongosh","version":"6.0.0|2.0.2"},"platform":"Node.js v20.8.1, LE","os":{"name":"linux","architecture":"x64","version":"5.15.90.1-microsoft-standard-WSL2","type":"Linux"}}}}
2023-11-02 18:09:47 {"t":{"$date":"2023-11-02T10:09:47.183+00:00"},"s":"I",  "c":"NETWORK",  "id":6788700, "ctx":"conn6","msg":"Received first command on ingress connection since session start or auth handshake","attr":{"elapsedMillis":5}}
2023-11-02 18:09:47 {"t":{"$date":"2023-11-02T10:09:47.184+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:40276","uuid":{"uuid":{"$uuid":"b94adbd8-f391-4d08-9224-f2e91c46290f"}},"connectionId":8,"connectionCount":4}}
2023-11-02 18:09:47 {"t":{"$date":"2023-11-02T10:09:47.195+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn8","msg":"client metadata","attr":{"remote":"127.0.0.1:40276","client":"conn8","doc":{"application":{"name":"mongosh 2.0.2"},"driver":{"name":"nodejs|mongosh","version":"6.0.0|2.0.2"},"platform":"Node.js v20.8.1, LE","os":{"name":"linux","architecture":"x64","version":"5.15.90.1-microsoft-standard-WSL2","type":"Linux"}}}}
2023-11-02 18:09:47 {"t":{"$date":"2023-11-02T10:09:47.201+00:00"},"s":"I",  "c":"NETWORK",  "id":6788700, "ctx":"conn8","msg":"Received first command on ingress connection since session start or auth handshake","attr":{"elapsedMillis":5}}
2023-11-02 18:09:47 {"t":{"$date":"2023-11-02T10:09:47.717+00:00"},"s":"I",  "c":"STORAGE",  "id":20320,   "ctx":"conn8","msg":"createCollection","attr":{"namespace":"admin.system.users","uuidDisposition":"generated","uuid":{"uuid":{"$uuid":"61d426f5-de71-4eaa-ba3a-97fff5a5f414"}},"options":{}}}
2023-11-02 18:09:47 {"t":{"$date":"2023-11-02T10:09:47.759+00:00"},"s":"I",  "c":"REPL",     "id":7360102, "ctx":"conn8","msg":"Added oplog entry for create to transaction","attr":{"namespace":"admin.$cmd","uuid":{"uuid":{"$uuid":"61d426f5-de71-4eaa-ba3a-97fff5a5f414"}},"object":{"create":"system.users","idIndex":{"v":2,"key":{"_id":1},"name":"_id_"}}}}
2023-11-02 18:09:47 {"t":{"$date":"2023-11-02T10:09:47.759+00:00"},"s":"I",  "c":"REPL",     "id":7360100, "ctx":"conn8","msg":"Added oplog entry for createIndexes to transaction","attr":{"namespace":"admin.$cmd","uuid":{"uuid":{"$uuid":"61d426f5-de71-4eaa-ba3a-97fff5a5f414"}},"object":{"createIndexes":"system.users","name":"user_1_db_1","key":{"user":1,"db":1},"unique":true,"v":2}}}
2023-11-02 18:09:47 {"t":{"$date":"2023-11-02T10:09:47.808+00:00"},"s":"I",  "c":"INDEX",    "id":20345,   "ctx":"conn8","msg":"Index build: done building","attr":{"buildUUID":null,"collectionUUID":{"uuid":{"$uuid":"61d426f5-de71-4eaa-ba3a-97fff5a5f414"}},"namespace":"admin.system.users","index":"_id_","ident":"index-8-6054818767704085297","collectionIdent":"collection-7-6054818767704085297","commitTimestamp":null}}
2023-11-02 18:09:47 {"t":{"$date":"2023-11-02T10:09:47.808+00:00"},"s":"I",  "c":"INDEX",    "id":20345,   "ctx":"conn8","msg":"Index build: done building","attr":{"buildUUID":null,"collectionUUID":{"uuid":{"$uuid":"61d426f5-de71-4eaa-ba3a-97fff5a5f414"}},"namespace":"admin.system.users","index":"user_1_db_1","ident":"index-9-6054818767704085297","collectionIdent":"collection-7-6054818767704085297","commitTimestamp":null}}
2023-11-02 18:09:47 {"t":{"$date":"2023-11-02T10:09:47.809+00:00"},"s":"I",  "c":"COMMAND",  "id":51803,   "ctx":"conn8","msg":"Slow query","attr":{"type":"command","ns":"admin.$cmd","appName":"mongosh 2.0.2","command":{"createUser":"pim-admin","pwd":"xxx","roles":[{"role":"root","db":"admin"}],"lsid":{"id":{"$uuid":"97769e46-0d3e-4fdf-87cf-aad72bdb3dca"}},"$db":"admin"},"numYields":0,"reslen":38,"locks":{"ParallelBatchWriterMode":{"acquireCount":{"r":4}},"FeatureCompatibilityVersion":{"acquireCount":{"w":4}},"ReplicationStateTransition":{"acquireCount":{"w":4}},"Global":{"acquireCount":{"w":4}},"Database":{"acquireCount":{"w":4}},"Collection":{"acquireCount":{"w":4}},"Mutex":{"acquireCount":{"r":1}}},"flowControl":{"acquireCount":4},"storage":{},"cpuNanos":62181200,"remote":"127.0.0.1:40276","protocol":"op_msg","durationMillis":137}}
2023-11-02 18:09:47 { ok: 1 }
2023-11-02 18:09:47 {"t":{"$date":"2023-11-02T10:09:47.841+00:00"},"s":"I",  "c":"NETWORK",  "id":22944,   "ctx":"conn8","msg":"Connection ended","attr":{"remote":"127.0.0.1:40276","uuid":{"uuid":{"$uuid":"b94adbd8-f391-4d08-9224-f2e91c46290f"}},"connectionId":8,"connectionCount":3}}
2023-11-02 18:09:47 {"t":{"$date":"2023-11-02T10:09:47.841+00:00"},"s":"I",  "c":"NETWORK",  "id":22944,   "ctx":"conn7","msg":"Connection ended","attr":{"remote":"127.0.0.1:40270","uuid":{"uuid":{"$uuid":"46f37974-4882-4a36-8ab6-9487d6c0ffdb"}},"connectionId":7,"connectionCount":2}}
2023-11-02 18:09:47 {"t":{"$date":"2023-11-02T10:09:47.842+00:00"},"s":"I",  "c":"-",        "id":20883,   "ctx":"conn5","msg":"Interrupted operation as its client disconnected","attr":{"opId":66}}
2023-11-02 18:09:47 {"t":{"$date":"2023-11-02T10:09:47.842+00:00"},"s":"I",  "c":"NETWORK",  "id":22944,   "ctx":"conn6","msg":"Connection ended","attr":{"remote":"127.0.0.1:40254","uuid":{"uuid":{"$uuid":"c245cb21-4410-42e7-a951-6b42b01206b2"}},"connectionId":6,"connectionCount":1}}
2023-11-02 18:09:47 {"t":{"$date":"2023-11-02T10:09:47.842+00:00"},"s":"I",  "c":"NETWORK",  "id":22944,   "ctx":"conn5","msg":"Connection ended","attr":{"remote":"127.0.0.1:40248","uuid":{"uuid":{"$uuid":"cafe2f01-3daa-4831-83b9-29280f86bab9"}},"connectionId":5,"connectionCount":0}}
2023-11-02 18:09:48 Current Mongosh Log ID:     6543756c73ad8e9d1caa4089
2023-11-02 18:09:48 Connecting to:              mongodb://127.0.0.1:27017/admin?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.0.2
2023-11-02 18:09:48 {"t":{"$date":"2023-11-02T10:09:48.694+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:40290","uuid":{"uuid":{"$uuid":"3bc3cd20-29f9-4f07-8cb9-b76fa5220a06"}},"connectionId":9,"connectionCount":1}}
2023-11-02 18:09:48 {"t":{"$date":"2023-11-02T10:09:48.710+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn9","msg":"client metadata","attr":{"remote":"127.0.0.1:40290","client":"conn9","doc":{"application":{"name":"mongosh 2.0.2"},"driver":{"name":"nodejs|mongosh","version":"6.0.0|2.0.2"},"platform":"Node.js v20.8.1, LE","os":{"name":"linux","architecture":"x64","version":"5.15.90.1-microsoft-standard-WSL2","type":"Linux"}}}}
2023-11-02 18:09:48 {"t":{"$date":"2023-11-02T10:09:48.753+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:40304","uuid":{"uuid":{"$uuid":"47f02ccc-9e01-4434-ae04-684226452a05"}},"connectionId":10,"connectionCount":2}}
2023-11-02 18:09:48 {"t":{"$date":"2023-11-02T10:09:48.754+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:40308","uuid":{"uuid":{"$uuid":"9761c1b8-40c7-42e4-b7e3-23dfa24b367a"}},"connectionId":11,"connectionCount":3}}
2023-11-02 18:09:48 {"t":{"$date":"2023-11-02T10:09:48.761+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn10","msg":"client metadata","attr":{"remote":"127.0.0.1:40304","client":"conn10","doc":{"application":{"name":"mongosh 2.0.2"},"driver":{"name":"nodejs|mongosh","version":"6.0.0|2.0.2"},"platform":"Node.js v20.8.1, LE","os":{"name":"linux","architecture":"x64","version":"5.15.90.1-microsoft-standard-WSL2","type":"Linux"}}}}
2023-11-02 18:09:48 {"t":{"$date":"2023-11-02T10:09:48.763+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn11","msg":"client metadata","attr":{"remote":"127.0.0.1:40308","client":"conn11","doc":{"application":{"name":"mongosh 2.0.2"},"driver":{"name":"nodejs|mongosh","version":"6.0.0|2.0.2"},"platform":"Node.js v20.8.1, LE","os":{"name":"linux","architecture":"x64","version":"5.15.90.1-microsoft-standard-WSL2","type":"Linux"}}}}
2023-11-02 18:09:48 {"t":{"$date":"2023-11-02T10:09:48.769+00:00"},"s":"I",  "c":"NETWORK",  "id":6788700, "ctx":"conn10","msg":"Received first command on ingress connection since session start or auth handshake","attr":{"elapsedMillis":7}}
2023-11-02 18:09:48 {"t":{"$date":"2023-11-02T10:09:48.773+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:40312","uuid":{"uuid":{"$uuid":"b9cfcbf2-2659-4c27-bc48-dc65fe352126"}},"connectionId":12,"connectionCount":4}}
2023-11-02 18:09:48 {"t":{"$date":"2023-11-02T10:09:48.783+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn12","msg":"client metadata","attr":{"remote":"127.0.0.1:40312","client":"conn12","doc":{"application":{"name":"mongosh 2.0.2"},"driver":{"name":"nodejs|mongosh","version":"6.0.0|2.0.2"},"platform":"Node.js v20.8.1, LE","os":{"name":"linux","architecture":"x64","version":"5.15.90.1-microsoft-standard-WSL2","type":"Linux"}}}}
2023-11-02 18:09:48 {"t":{"$date":"2023-11-02T10:09:48.787+00:00"},"s":"I",  "c":"NETWORK",  "id":6788700, "ctx":"conn12","msg":"Received first command on ingress connection since session start or auth handshake","attr":{"elapsedMillis":3}}
2023-11-02 18:09:48 Using MongoDB:              7.0.2
2023-11-02 18:09:48 Using Mongosh:              2.0.2
2023-11-02 18:09:48 
2023-11-02 18:09:48 For mongosh info see: https://docs.mongodb.com/mongodb-shell/
2023-11-02 18:09:48 
2023-11-02 18:09:48 
2023-11-02 18:09:48 To help improve our products, anonymous usage data is collected and sent to MongoDB periodically (https://www.mongodb.com/legal/privacy-policy).
2023-11-02 18:09:48 You can opt-out by running the disableTelemetry() command.
2023-11-02 18:09:48 
2023-11-02 18:09:48 ------
2023-11-02 18:09:48    The server generated these startup warnings when booting
2023-11-02 18:09:48    2023-11-02T10:09:44.610+00:00: Access control is not enabled for the database. Read and write access to data and configuration is unrestricted
2023-11-02 18:09:48    2023-11-02T10:09:44.610+00:00: /sys/kernel/mm/transparent_hugepage/enabled is 'always'. We suggest setting it to 'never'
2023-11-02 18:09:48    2023-11-02T10:09:44.610+00:00: vm.max_map_count is too low
2023-11-02 18:09:48 ------
2023-11-02 18:09:48 
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.312+00:00"},"s":"I",  "c":"COMMAND",  "id":4695400, "ctx":"conn12","msg":"Terminating via shutdown command","attr":{"force":false,"timeoutMillis":15000}}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.313+00:00"},"s":"I",  "c":"REPL",     "id":4794602, "ctx":"thread38","msg":"Attempting to enter quiesce mode"}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.313+00:00"},"s":"I",  "c":"-",        "id":6371601, "ctx":"thread38","msg":"Shutting down the FLE Crud thread pool"}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.313+00:00"},"s":"I",  "c":"COMMAND",  "id":4784901, "ctx":"thread38","msg":"Shutting down the MirrorMaestro"}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.313+00:00"},"s":"I",  "c":"SHARDING", "id":4784902, "ctx":"thread38","msg":"Shutting down the WaitForMajorityService"}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.315+00:00"},"s":"I",  "c":"CONTROL",  "id":4784903, "ctx":"thread38","msg":"Shutting down the LogicalSessionCache"}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.316+00:00"},"s":"I",  "c":"NETWORK",  "id":20562,   "ctx":"thread38","msg":"Shutdown: going to close listening sockets"}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.316+00:00"},"s":"I",  "c":"NETWORK",  "id":23017,   "ctx":"listener","msg":"removing socket file","attr":{"path":"/tmp/mongodb-27017.sock"}}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.316+00:00"},"s":"I",  "c":"NETWORK",  "id":4784905, "ctx":"thread38","msg":"Shutting down the global connection pool"}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.316+00:00"},"s":"I",  "c":"CONTROL",  "id":4784906, "ctx":"thread38","msg":"Shutting down the FlowControlTicketholder"}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.316+00:00"},"s":"I",  "c":"-",        "id":20520,   "ctx":"thread38","msg":"Stopping further Flow Control ticket acquisitions."}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.316+00:00"},"s":"I",  "c":"CONTROL",  "id":4784908, "ctx":"thread38","msg":"Shutting down the PeriodicThreadToAbortExpiredTransactions"}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.316+00:00"},"s":"I",  "c":"REPL",     "id":4784909, "ctx":"thread38","msg":"Shutting down the ReplicationCoordinator"}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.316+00:00"},"s":"I",  "c":"SHARDING", "id":4784910, "ctx":"thread38","msg":"Shutting down the ShardingInitializationMongoD"}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.316+00:00"},"s":"I",  "c":"REPL",     "id":4784911, "ctx":"thread38","msg":"Enqueuing the ReplicationStateTransitionLock for shutdown"}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.316+00:00"},"s":"I",  "c":"-",        "id":4784912, "ctx":"thread38","msg":"Killing all operations for shutdown"}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.316+00:00"},"s":"I",  "c":"-",        "id":4695300, "ctx":"thread38","msg":"Interrupted all currently running operations","attr":{"opsKilled":5}}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.316+00:00"},"s":"I",  "c":"TENANT_M", "id":5093807, "ctx":"thread38","msg":"Shutting down all TenantMigrationAccessBlockers on global shutdown"}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.317+00:00"},"s":"I",  "c":"ASIO",     "id":22582,   "ctx":"TenantMigrationBlockerNet","msg":"Killing all outstanding egress activity."}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.317+00:00"},"s":"I",  "c":"ASIO",     "id":6529201, "ctx":"thread38","msg":"Network interface redundant shutdown","attr":{"state":"Stopped"}}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.317+00:00"},"s":"I",  "c":"ASIO",     "id":22582,   "ctx":"thread38","msg":"Killing all outstanding egress activity."}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.317+00:00"},"s":"I",  "c":"COMMAND",  "id":4784913, "ctx":"thread38","msg":"Shutting down all open transactions"}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.317+00:00"},"s":"I",  "c":"REPL",     "id":4784914, "ctx":"thread38","msg":"Acquiring the ReplicationStateTransitionLock for shutdown"}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.317+00:00"},"s":"I",  "c":"INDEX",    "id":4784915, "ctx":"thread38","msg":"Shutting down the IndexBuildsCoordinator"}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.317+00:00"},"s":"I",  "c":"NETWORK",  "id":4784918, "ctx":"thread38","msg":"Shutting down the ReplicaSetMonitor"}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.317+00:00"},"s":"I",  "c":"SHARDING", "id":4784921, "ctx":"thread38","msg":"Shutting down the MigrationUtilExecutor"}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.317+00:00"},"s":"I",  "c":"ASIO",     "id":22582,   "ctx":"MigrationUtil-TaskExecutor","msg":"Killing all outstanding egress activity."}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.317+00:00"},"s":"I",  "c":"COMMAND",  "id":4784923, "ctx":"thread38","msg":"Shutting down the ServiceEntryPoint"}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.317+00:00"},"s":"I",  "c":"CONTROL",  "id":4784927, "ctx":"thread38","msg":"Shutting down the HealthLog"}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.318+00:00"},"s":"I",  "c":"CONTROL",  "id":4784928, "ctx":"thread38","msg":"Shutting down the TTL monitor"}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.318+00:00"},"s":"I",  "c":"INDEX",    "id":3684100, "ctx":"thread38","msg":"Shutting down TTL collection monitor thread"}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.321+00:00"},"s":"I",  "c":"INDEX",    "id":3684101, "ctx":"thread38","msg":"Finished shutting down TTL collection monitor thread"}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.321+00:00"},"s":"I",  "c":"CONTROL",  "id":6278511, "ctx":"thread38","msg":"Shutting down the Change Stream Expired Pre-images Remover"}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.321+00:00"},"s":"I",  "c":"CONTROL",  "id":4784929, "ctx":"thread38","msg":"Acquiring the global lock for shutdown"}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.321+00:00"},"s":"I",  "c":"CONTROL",  "id":4784930, "ctx":"thread38","msg":"Shutting down the storage engine"}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.321+00:00"},"s":"I",  "c":"STORAGE",  "id":22320,   "ctx":"thread38","msg":"Shutting down journal flusher thread"}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.322+00:00"},"s":"I",  "c":"STORAGE",  "id":22321,   "ctx":"thread38","msg":"Finished shutting down journal flusher thread"}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.322+00:00"},"s":"I",  "c":"STORAGE",  "id":22322,   "ctx":"thread38","msg":"Shutting down checkpoint thread"}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.322+00:00"},"s":"I",  "c":"STORAGE",  "id":22323,   "ctx":"thread38","msg":"Finished shutting down checkpoint thread"}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.322+00:00"},"s":"I",  "c":"STORAGE",  "id":22261,   "ctx":"thread38","msg":"Timestamp monitor shutting down"}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.322+00:00"},"s":"I",  "c":"STORAGE",  "id":20282,   "ctx":"thread38","msg":"Deregistering all the collections"}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.323+00:00"},"s":"I",  "c":"STORAGE",  "id":22317,   "ctx":"thread38","msg":"WiredTigerKVEngine shutting down"}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.323+00:00"},"s":"I",  "c":"STORAGE",  "id":22318,   "ctx":"thread38","msg":"Shutting down session sweeper thread"}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.324+00:00"},"s":"I",  "c":"STORAGE",  "id":22319,   "ctx":"thread38","msg":"Finished shutting down session sweeper thread"}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.325+00:00"},"s":"I",  "c":"NETWORK",  "id":22944,   "ctx":"conn9","msg":"Connection ended","attr":{"remote":"127.0.0.1:40290","uuid":{"uuid":{"$uuid":"3bc3cd20-29f9-4f07-8cb9-b76fa5220a06"}},"connectionId":9,"connectionCount":3}}
2023-11-02 18:09:49 {"t":{"$date":"2023-11-02T10:09:49.333+00:00"},"s":"I",  "c":"STORAGE",  "id":4795902, "ctx":"thread38","msg":"Closing WiredTiger","attr":{"closeConfig":"leak_memory=true,use_timestamp=false,"}}
2023-11-02 18:09:50 {"t":{"$date":"2023-11-02T10:09:50.314+00:00"},"s":"E",  "c":"COMMAND",  "id":4879802, "ctx":"conn12","msg":"Failed to handle request","attr":{"error":"CloseConnectionForShutdownCommand: Closing the connection running the shutdown command"}}
2023-11-02 18:09:50 {"t":{"$date":"2023-11-02T10:09:50.314+00:00"},"s":"I",  "c":"NETWORK",  "id":22944,   "ctx":"conn12","msg":"Connection ended","attr":{"remote":"127.0.0.1:40312","uuid":{"uuid":{"$uuid":"b9cfcbf2-2659-4c27-bc48-dc65fe352126"}},"connectionId":12,"connectionCount":2}}
2023-11-02 18:09:50 {"t":{"$date":"2023-11-02T10:09:50.340+00:00"},"s":"I",  "c":"NETWORK",  "id":22944,   "ctx":"conn10","msg":"Connection ended","attr":{"remote":"127.0.0.1:40304","uuid":{"uuid":{"$uuid":"47f02ccc-9e01-4434-ae04-684226452a05"}},"connectionId":10,"connectionCount":1}}
2023-11-02 18:09:50 {"t":{"$date":"2023-11-02T10:09:50.341+00:00"},"s":"I",  "c":"NETWORK",  "id":22944,   "ctx":"conn11","msg":"Connection ended","attr":{"remote":"127.0.0.1:40308","uuid":{"uuid":{"$uuid":"9761c1b8-40c7-42e4-b7e3-23dfa24b367a"}},"connectionId":11,"connectionCount":0}}
2023-11-02 18:09:50 MongoNetworkError: connection 3 to 127.0.0.1:27017 closed
2023-11-02 18:09:50 Traceback (most recent call last):
2023-11-02 18:09:50   File "/usr/local/bin/docker-entrypoint.py", line 635, in <module>
2023-11-02 18:09:50     _init_database()
2023-11-02 18:09:50   File "/usr/local/bin/docker-entrypoint.py", line 317, in _init_database
2023-11-02 18:09:50     assert "mongod" not in [
2023-11-02 18:09:50 AssertionError: Could not shutdown mongod for init db successfully. Try again.

compose.yaml -

services:
    mongodb:
      container_name: 'pim-db'
      image: mongodb/mongodb-community-server:latest
      ports:
        - 27016:27017
      volumes:
        - ../db:/data/db
      environment:
        - MONGODB_INITDB_ROOT_USERNAME=pim-admin
        - MONGODB_INITDB_ROOT_PASSWORD=Cryol@xco123.

This happens when I try to run a container using the Docker MongoDB Community Server image and only happens when I mount the container /data/db to windows folder. The container is run using docker compose. Does this have to do with windows folder permission?