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
The docker-maven-plugin currently turns all Windows file paths (C:\Users\example/test.txt) into /c/Users/example/test.txt in EnvUtils.fixupPath.
This leads to problems when using Rancher Desktop or Podman instead of Docker Desktop. Since both of these tools only run in the WSL, the correct path in the WSL image would be /mnt/c/Users/example/test.txt . The /mnt/ part is currently missing.
However, both Rancher Desktop and Podman can already correct Windows paths into WSL paths if you call the Docker API with Windows file paths. So for example, docker run -d --name nginx -v C:\Users\example\test.txt:/tmp/test.txt nginx:latest works.
Rancher Desktop and Podman have different behavior right now with the latest docker-maven-plugin release:
Rancher Desktop creates an empty directory under /c/Users/example/test.txt
Podman fails with make cli opts(): making volume mountpoint for volume /c/Users/example/test.txt: mkdir /c: permission denied
Description
The docker-maven-plugin currently turns all Windows file paths (C:\Users\example/test.txt) into /c/Users/example/test.txt in EnvUtils.fixupPath.
This leads to problems when using Rancher Desktop or Podman instead of Docker Desktop. Since both of these tools only run in the WSL, the correct path in the WSL image would be /mnt/c/Users/example/test.txt . The /mnt/ part is currently missing.
However, both Rancher Desktop and Podman can already correct Windows paths into WSL paths if you call the Docker API with Windows file paths. So for example,
docker run -d --name nginx -v C:\Users\example\test.txt:/tmp/test.txt nginx:latest
works.Rancher Desktop and Podman have different behavior right now with the latest docker-maven-plugin release:
make cli opts(): making volume mountpoint for volume /c/Users/example/test.txt: mkdir /c: permission denied
This bug is somewhat related to #1713
Info
mvn -v
) :podman pull nginx
does not work, you probably have to fix the DNS resolution in the WSL image with this fix: https://gist.github.com/ThePlenkov/6ecf2a43e2b3898e8cd4986d277b5ecfmvn verify
, it should fail with thepermission denied
errorThe text was updated successfully, but these errors were encountered: