-
Notifications
You must be signed in to change notification settings - Fork 116
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
osxfs:cached does not work with named volumes #1899
Comments
@lmakarov thanks for the report. inotify event delivery also does not occur with |
- This will automatically enabled osxfs:cached mode for the project root volume in cli - The volume has to be defined using the host path. The cached flag cannot yet be used with named volumes. See docker/for-mac#1899 - Docker Compose update in necessary due to a bug older versions have with merging same volume definitions from multiple yml files
* Enable osxfs:cached automatically on Docker for Mac - This will automatically enabled osxfs:cached mode for the project root volume in cli - The volume has to be defined using the host path. The cached flag cannot yet be used with named volumes. See docker/for-mac#1899 - Docker Compose update in necessary due to a bug older versions have with merging same volume definitions from multiple yml files
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
@dsheets the upstream PR you referenced (moby/moby#33375) was closed (not merged) yesterday. Does that mean there will be no solution for this issue in the near future? |
@lmakarov sorry for the delay and thanks for your patience. I have a candidate fix for this issue which is being tested internally. I'll let you know how it goes. |
I wonder if the fix is getting into the next Docker for Mac release? |
@achekulaev could you try the latest edge release? https://docs.docker.com/docker-for-mac/edge-release-notes/ -- it should be fixed there and the same fix will be released on the stable branch soon. |
I can confirm this now works as expected. Thanks! |
@djs55 looks like this is not fully done. We are now getting the following error with Docker for Mac 18.06.0 when a container with a named volume and the
This only happened when the volume is defined as:
The following two versions work without issues:
|
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
/remove-lifecycle stale |
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
Cached flag should apply when set for a named (bind mounted) volume.
Actual behavior
When using named volumes, the
cached
flag does not apply.Information
Diagnostic ID: 6CF6F893-8C12-4325-9733-0847F3114B13
Steps to reproduce the behavior
This does not work:
This works:
Related to #1592. CC @dsheets
The text was updated successfully, but these errors were encountered: