You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an volume override is added in the lando config file, and that specific volume contains an addition option such as ro, cached, then lando will use back slashes in the destination path instead of the expected forward slashes (unix style). I assume this problem is Windows specific issue.
Notice that /app/dir1 bind mount is correct (using forward slashes), but the second \app\dir2:ro,cached is using back slashes.
It seems like docker itself doesn't mind this at all...the source directory is binded to the container's destination directory just fine.
However, a problem arises when trying to override and existing volume mount. For example, if lando by default adds a volume: .:/app and I wanted to override it to make it readonly .:/app:ro,cached, then lando doesn't override the existing volume specification because it thinks they are different /app is not equal to \app and we end up with two mounts to the same destination directory. So the override functionality is broken in this case.
$ lando version
v3.21.2
The text was updated successfully, but these errors were encountered:
Possible this is something unique to some string interpretation within Lando on Windows? @AaronFeledy don't know if you'd have any insight on that, with your deep connection to the Redmond life force.
When an volume override is added in the lando config file, and that specific volume contains an addition option such as
ro, cached
, then lando will use back slashes in the destination path instead of the expected forward slashes (unix style). I assume this problem is Windows specific issue.Here is a simple example:
When inspecting the raw docker compose file generated by lando in
%USERPROFILE%\.lando\compose\test
I see this:Notice that
/app/dir1
bind mount is correct (using forward slashes), but the second\app\dir2:ro,cached
is using back slashes.It seems like docker itself doesn't mind this at all...the source directory is binded to the container's destination directory just fine.
However, a problem arises when trying to override and existing volume mount. For example, if lando by default adds a volume:
.:/app
and I wanted to override it to make it readonly.:/app:ro,cached
, then lando doesn't override the existing volume specification because it thinks they are different/app
is not equal to\app
and we end up with two mounts to the same destination directory. So the override functionality is broken in this case.The text was updated successfully, but these errors were encountered: