https://rancher.com/ logo
Title
d

damp-dress-71748

08/05/2022, 7:37 AM
Hello, I am getting the bellow error when trying to build an image from WSL2 using nerdctl. Anyone faced similar issue: nerdctl build . WARN[0000] lstat /mnt/wslg/rancher-desktop/run/nerdctl-tmp.2012909157/input.1650504545/Dockerfile: no such file or directory, using Containerfile as fallback FATA[0000] lstat /mnt/wslg/rancher-desktop/run/nerdctl-tmp.2012909157/input.1650504545/Containerfile: no such file or directory
k

kind-iron-72902

08/05/2022, 4:46 PM
First, is there a file called
Dockerfile
or
Containerfile
in that directory?
d

damp-dress-71748

08/05/2022, 5:55 PM
yes, the build will work fine if using docker ❯ ls Dockerfile Procfile app.py kube requirements.txt static templates ❯ nerdctl build -t local/app . WARN[0000] lstat /mnt/wslg/rancher-desktop/run/nerdctl-tmp.1575948084/input.3962298902/Dockerfile: no such file or directory, using Containerfile as fallback FATA[0000] lstat /mnt/wslg/rancher-desktop/run/nerdctl-tmp.1575948084/input.3962298902/Containerfile: no such file or directory
Anyone can assist in this issue ? i am not sure what is wrong.