Closed emmaberger closed 1 month ago
regression on 2.29.5 is caused by https://github.com/docker/compose/commit/cb00aaad288ff83ed98835a1edea635800f5b083 - I would have expected windows container engine to just ignore the propagation
parameter as it is not implemented - we unfortunately don't have windows container tests on CI.
I proposed a fix as https://github.com/docker/compose/pull/12138
error you reported on 2.29.3 is harder to diagnose. I checked docker run --mount xxx
is well supported by windows containers, so this should work and the error message doesn't make it obvious what's wrong here. Investigation in progress ...
Tested my PR with a short-syntax bind mount on windows with windows-containers-enabled-engine and can't reproduce the reported issue. Would you have a chance to give it a try ?
Also reported in;
That one also reported the rshared
being the culprit;
Error response from daemon: invalid mount config for type "bind": invalid propagation mode: rshared
Description
Version 2.29.3: Using volumes in services defined in docker compose with short syntax (VOLUME:CONTAINER_PATH) give this error when doing "docker compose up": Error response from daemon: hcs::CreateComputeSystem : The request is not supported.
Version 2.29.5: Using volumes in services defined in docker compose with short syntax (VOLUME:CONTAINER_PATH) give this error when doing "docker compose up": Error response from daemon: invalid mount config for type "bind": invalid propagation mode: rprivate.
This worked all fine, up until version 2.29.2, inclusively. From Docker docs "Bind propagation defaults to rprivate for both bind mounts and volumes. It is only configurable for bind mounts, and only on Linux host machines."
We need to have this working again on Windows Host machines as well. Please provide a fix or a workaround.
Steps To Reproduce
Environment: Windows Host Machines
Add any service in a docker compose file and define volumes with short syntax: e.g.
Docker Environment
Anything else?
No response