-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sqlite dabatase in mounted folder is always locked #11
Comments
Thanks for reporting, we will add the flag to fix your issue. |
thanks @ebriney |
Unfortunately we moved the binding code in C# so there is no workaround except installing a previous version and wait for the hot fixes release soon |
Closing. |
Hey @dgageot, |
@howlerwolf1313 it should be released on a beta first (hasn't been released yet that i know) and then hopefully in the stable version after a while. |
@howlerwolf1313 It should be relased on beta channel next week |
@alebianco @dgageot Thank you. |
@dgageot @friism I need help documenting the See Docker for Windows issue 694 and the docs issue #3147 I opened to track it. I'm running the latest Docker for Windows build 17.05.0-ce-win-11 (12053), but I need help figuring this out. |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Expected behavior
a sqlite database file can be place is a folder mounted from the host and used normally
Actual behavior
any operation on such database results in a "database is locked" error
database files placed in non-mounted folder work as expected
Information
90E72802-EF07-4D06-8B68-EC91E23CDBBE/2016-07-29_20-36-27
Steps to reproduce the behavior
docker run --rm -it -v /c/Users/alebi/Desktop/db/data:/data --name sqlite sqlite /data/data.db
.database
CREATE TABLE IF NOT EXISTS foo(bar int);
Error: database is locked
Additional info
These are the mounting options
This seems to be a "common" CIFS issue related to the byte-range blocking that behaves unexpectedly with sqlite locks. It's usually resolved by using the
nobrl
flag in the mounting options.The MobyLinux.ps1 script (C:\Program Files\Docker\Docker\resources) used to contain the mount flags, were I could add the nobrl option when needed, as of the latest version (1.12.0-beta21) the mount flags were removed so there's no workaround (yet).
The text was updated successfully, but these errors were encountered: