问题
I am trying to run a mongo db container in windows with a volume mapping to a windows folder.
I have followed the answer by babak in this question. The folder maps properly, but it creates lots of files named WiredTiger.wt.1 where the number at the end keeps incrementing.
I get the following lines in the log:
2020-06-12T12:49:11.431+0000 I STORAGE [initandlisten] WiredTiger message unexpected file WiredTiger.wt found, renamed to WiredTiger.wt.13233
2020-06-12T12:49:11.433+0000 E STORAGE [initandlisten] WiredTiger error (1) [1591966151:433603][1:0x7ff261e16b00], connection: __posix_open_file, 667: /data/db/WiredTiger.wt: handle-open: open: Operation not permitted Raw: [1591966151:433603][1:0x7ff261e16b00], connection: __posix_open_file, 667: /data/db/WiredTiger.wt: handle-open: open: Operation not permitted
2020-06-12T12:49:11.448+0000 E STORAGE [initandlisten] WiredTiger error (17) [1591966151:448092][1:0x7ff261e16b00], connection: __posix_open_file, 667: /data/db/WiredTiger.wt: handle-open: open: File exists Raw: [1591966151:448092][1:0x7ff261e16b00], connection: __posix_open_file, 667: /data/db/WiredTiger.wt: handle-open: open: File exists
2020-06-12T12:49:11.473+0000 I STORAGE [initandlisten] WiredTiger message unexpected file WiredTiger.wt found, renamed to WiredTiger.wt.13234
2020-06-12T12:49:11.475+0000 E STORAGE [initandlisten] WiredTiger error (1) [1591966151:475038][1:0x7ff261e16b00], connection: __posix_open_file, 667: /data/db/WiredTiger.wt: handle-open: open: Operation not permitted Raw: [1591966151:475038][1:0x7ff261e16b00], connection: __posix_open_file, 667: /data/db/WiredTiger.wt: handle-open: open: Operation not permitted
2020-06-12T12:49:11.477+0000 W STORAGE [initandlisten] Failed to start up WiredTiger under any compatibility version.
2020-06-12T12:49:11.477+0000 F STORAGE [initandlisten] Reason: 1: Operation not permitted
2020-06-12T12:49:11.477+0000 F - [initandlisten] Fatal Assertion 28595 at src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp 915
Does anyone know how to resolve this?
Thanks
Paul
来源:https://stackoverflow.com/questions/62345030/unable-to-run-a-mongodb-container-in-docker-for-windows-using-linux-file-system