docker / for-mac

Bug reports for Docker Desktop for Mac
https://www.docker.com/products/docker#/mac
2.44k stars 118 forks source link

Synchronised File Sharing MongoDB data volume causes data corruption #7408

Closed Greg-Myers-SB closed 1 month ago

Greg-Myers-SB commented 2 months ago

Description

As per title. With this feature turned on; https://docs.docker.com/desktop/synchronized-file-sharing/ Using the MongoDB 6 image, and mounting the data volume, it will immediately become corrupt and MongoDB will fail with error code 14 and a WiredTiger error.

Reproduce

Turn on the sync feature in Docker Desktop

docker run --name some-mongo -v /my/own/datadir:/data/db mongo:6

Instantly fails

Expected behavior

No response

docker version

-

docker info

-

Diagnostics ID

-

Additional Info

No response

xenoscopic commented 1 month ago

Hi @Greg-Myers-SB, can you verify that this occurs with the latest version of Docker Desktop (4.34.2)? We did have an earlier bug where this issue occurred, but it was fixed in 4.30.

xenoscopic commented 1 month ago

I think this is likely fixed, please try the most recent version of DD and comment if the issue recurs.

Greg-Myers-SB commented 1 month ago

I confirm this is now fixed. Thank you.