https://rancher.com/ logo
Title
f

full-elephant-64647

05/23/2023, 2:09 PM
Hi can anyone help me with this problem in wsl, I am able to run this fine on windows powershell but on wsl it gives me this error
/mnt/d/container-demo # nerdctl build --tag container-demo:latest .
FATA[0000] lstat /Containerfile: no such file or directory
f

fast-garage-66093

05/23/2023, 3:42 PM
Looks like a bug; can you file a Github issue for it please?
l

loud-motorcycle-81

05/23/2023, 3:45 PM
I hit this as well running containerd
f

fast-garage-66093

05/23/2023, 3:47 PM
It may be the same issue as nerdctl compose up failing · Issue #4364; please add a 👍 reaction on the issue, or a comment that you experience it as well
f

full-elephant-64647

05/23/2023, 3:58 PM
f

fast-garage-66093

05/23/2023, 4:00 PM
You should file the issue against the main repo, not against your fork; otherwise you will be the only person seeing it. But you can also just add it as a comment to the issue I linked above; it is very likely the same one
f

fast-garage-66093

05/23/2023, 4:22 PM
Thank you!
f

full-elephant-64647

05/23/2023, 4:28 PM
Thanks, Jan for your guidance, I am trying to make it work with the CONTAINER d runtime in WSL according to the rancher academy courses. With Powershell it's giving the expected results but with WSL no luck so far.
r

rapid-eye-50641

05/23/2023, 7:19 PM
@full-elephant-64647, Can you please let us know the exact rancher academy course you are referring to ? Also, To help us reproduce the issue, Can you please try below simpler example and let us know if you see issues with it as well?
echo "FROM alpine" > Dockerfile
echo 'CMD ["echo", "Hello World!!"]' >> Dockerfile
nerdctl build -t hello-world:0.1.0 .
nerdctl images
And, which WSL distro are you using ?