-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Windows Client, Linux Server, relative volume path regression #7900
Comments
I guess it needs something similar to docker/cli#1990 (but then in Python of course 😅) @aiordache PTAL |
Faced the same issue with secret files defined in a compose file. On running |
This is slightly related to #7838 (relative paths expanded client-side, into an absolute paths that don't exist on the remote) in that the underlying issue in both cases is client-side interpretation of volume paths when a remote daemon is in use. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Bump to prevent staleness, this is blocking docker upgrades for me. |
This issue has been automatically marked as not stale anymore due to the recent activity. |
Also hitting issues with this. Would be great to get it fixed! 🙏🤞 |
Hello, this problem has been reported multiple times, but no dev (@aiordache) seems to reply and I've not been able to upgrade Docker Desktop since October 2020 because this completely breaks my deployment setup. See some relevant issues: #7856 #7893 #8051 and also comments in the PR #7762 Please see #7856 (comment) for an analysis of the cause. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Bump to prevent staleness, this is still blocking docker upgrades for me. |
This issue has been automatically marked as not stale anymore due to the recent activity. |
Is there a workaround here? I feel like it's reasonable to be using docker compose from a windows client to a linux server. |
Actually the solution looks to be just to switch to docker compose v2 |
Copied from my comment: #7762 (comment)
I execute docker-compose on Windows, with a remote docker host on Linux. The 'relative path' expansion/abs path transformation from #7762 ends up converting Linux absolute paths in my config (like /path/from/root), into Windows-style paths (like C:/path/from/root), which ends up as an invalid path on the remote filesystem (and caused my volumes to report that the 'device' changed even though I haven't changed my docker-compose file in years).
Example error:
Context information (for bug reports)
Output of
docker-compose version
Output of
docker version
Output of
docker-compose config
(Make sure to add the relevant
-f
and other flags)Actual config file
Steps to reproduce the issue
Observed result
I get errors about the volume path being different, even though it hasn't changed. Thankfully my volume already exists, or else I expect docker-compose just wouldn't be able to create the volume.
Expected result
This should work as it did before the change, and the volume path should be relative to the server filesystem, not the docker-compose client filesystem.
Stacktrace / full error message
Additional information
Windows 10 docker-compose client
Linux docker host.
The text was updated successfully, but these errors were encountered: