Skip to content
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

Windows buildkit: copy context error #4918

Open
HeikoNardmann opened this issue May 13, 2024 · 6 comments
Open

Windows buildkit: copy context error #4918

HeikoNardmann opened this issue May 13, 2024 · 6 comments

Comments

@HeikoNardmann
Copy link

HeikoNardmann commented May 13, 2024

On Windows 11 with docker engine v26.1.0 and buildx v0.14.0 inside cmd I run the following:

set DOCKER_BUILDKIT=1
tar cf - Dockerfile | docker build -f Dockerfile -

That gives me

#0 building with "default" instance using docker driver

#1 [internal] load remote build context
#1 DONE 1.7s

#1 [internal] load remote build context
#1 CACHED

#2 copy /\context /
#2 ERROR: cleaning source path: removing drive letter: UNC paths are not supported
------
 > copy /\context /:
------
ERROR: failed to solve: failed to read dockerfile: cleaning source path: removing drive letter: UNC paths are not supported

Any idea?

@tonistiigi
Copy link
Member

What's the contents of your Dockerfile?

It's hard to understand what you are trying to achieve as well as you are creating file as Dockerfile but then passing Dockerfile.windows.build.qt-6.5.5-static as filename, although that looks unrelated to the error.

Fill in the version/architecture/how you are running buildkit info as requested by the template. If you are building windows containers (not windows client building linux containers) then this is not supported by DOCKER_BUILDKIT=1 atm.

@HeikoNardmann
Copy link
Author

Sorry, the mismatching Dockerfile name has been due to my incomplete preparation for the ticket report. Fixed above.

Not sure what you mean with version (in my opinioin already given by 26.1.0 and 0.14.0), architecture (Windows 11).

Yes, I'm trying to build a Windows container: otherwise I wonder what that Windows buildx 0.14.0 can be used for ... ?

@HeikoNardmann
Copy link
Author

Sorry, the mismatching Dockerfile name has been due to my incomplete preparation for the ticket report. Fixed above.

Not sure what you mean with version (in my opinion already given by 26.1.0 and 0.14.0), architecture (Windows 11).

Yes, I'm trying to build a Windows container: otherwise I wonder what that Windows buildx 0.14.0 can be used for ... ?

@profnandaa
Copy link
Collaborator

profnandaa commented May 14, 2024

@HeikoNardmann -- which guide are you following, this (set DOCKER_BUILDKIT=1) looks like for LCOW scenario? Also share your Dockerfile content if possible (can remove any personal info).

Could you follow this? https://docs.docker.com/build/buildkit/#buildkit-on-windows

@HeikoNardmann
Copy link
Author

No, I want to create a Windows container on a Windows system using buildkit.
Therefore I've navigated to buildx and followed the instructions there.
Or am I maybe completely wrong here?

@profnandaa
Copy link
Collaborator

Ok, please share your repro dockerfile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants