https://rancher.com/ logo
Title
r

ripe-traffic-25731

06/21/2022, 4:38 PM
Hi Rancher Desktop users. I've installed everything according to the guides on windows 10 and using nerdctl in my WSL2 Ubuntu. When trying to make a nerdctl compose I'm getting always:
error: failed to solve: failed to read dockerfile: open /tmp/buildkit-mount2585923853/Dockerfile: no such file or directory
Apparently nerdctl or the build process does not get the correct context defined in docker-compose.yml.
Does anyone has an idea what's going wrong there? I've already tried a factory reset and cleaned up all the old docker stuff.
p

proud-jewelry-46860

06/21/2022, 4:42 PM
Hmm, it sounds like there's an issue in cross-WSL-distro functionality 😞
r

ripe-traffic-25731

06/21/2022, 4:43 PM
Is it possible, that the path does exist temporarily in wsl rancher-desktop but not in my wsl ubuntu and the search paths are somehow broken?
Okay, this is apparently not the case. Btw, I've also checked this one: https://github.com/docker/for-win/issues/8781
And I've also tried the minimal compose example from the docker compose docs.
w

wide-mechanic-33041

06/21/2022, 5:56 PM
and https://github.com/rancher-sandbox/rancher-desktop/issues/1431. Using docker-compose w moby/docker worked from the same working directory.
r

ripe-traffic-25731

06/21/2022, 5:57 PM
Yes, I saw this. It might be related.
Is anyone facing similar issues?
It is definitely a WSL issue, since in the Powershell of the host system everything works fine. 😕
There is something fundamentally broken with path handling in WSL.
w

wide-mechanic-33041

06/23/2022, 11:44 AM
Guessing not WSL, but the shim running in the host not passing the cwd correctly to the WSL side
👍 1