-
Notifications
You must be signed in to change notification settings - Fork 604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nerdctl fails to build for dockerfiles with full path #206
Comments
Actually we don't support this Line 147 in 3668d7d
The dockerfile context is the same as the build context. Have a Nice day |
Was this fixed ? I can't build image from Dockerfiles with the same error |
@andel7 Probably already moved on, but for future searchers. This sounds stupid, but try running the build command at least 3 times after failure (if you know the Dockerfile works with Docker/docker CLI). For me, it progresses a little further each time until it succeeds in building a new image from Dockerfile. |
Already fixed in nerdctl v0.8.2: I also tested v0.19.0 locally and I don't see any regression. |
@andel7 Are you seeing this error with Lima/Colima/Rancher Desktop? |
Yes, and yes it is, but still getting this error. nerdctl version 0.20.0 |
Oh, nevermind. The problem was between the keyboard and the chair. |
I have a very similar issue:
I'm pretty sure, there is something going wrong in passing the data from the context to the builder, i.e. the Dockerfile. |
The way I got this to work in Windows with your same config is by issuing the nerdctl command from an elevated command prompt/running as admin |
nerdctl
installed with rootless containerd and buildkit fails to build dockerfiles when the dockerfile specified is a full path:Simple Repro
Create test Dockerfile in your root directory (
Dockerfile
):Run the following
The text was updated successfully, but these errors were encountered: