We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
buildctl fails on Windows with "archive/tar: invalid tar header" for both type=oci and type=docker using CMD or PowerShell.
type=oci
type=docker
> buildctl.exe build --progress=tty --frontend=dockerfile.v0 --local=context=. --output=type=docker,name=test/hello-buildkit,push=false --local=dockerfile=./ --opt=filename=Dockerfile | docker load archive/tar: invalid tar header error: failed to solve: failed to copy to tar: rpc error: code = Unknown desc = write /dev/stdout: The pipe is being closed.
FROM mcr.microsoft.com/windows/nanoserver:ltsc2022 RUN echo "hello"
Using --progress plain works
--progress plain
> buildctl.exe build --progress=plain --frontend=dockerfile.v0 --local=context=. --output=type=docker,name=test/hello-buildkit,push=false --local=dockerfile=./ --opt=filename=Dockerfile | docker load #1 [internal] load build definition from Dockerfile #1 transferring dockerfile: 108B done #1 DONE 0.0s #2 [internal] load metadata for mcr.microsoft.com/windows/nanoserver:ltsc2022 #2 DONE 0.3s #3 [internal] load .dockerignore #3 transferring context: 2B done #3 DONE 0.0s #4 [1/2] FROM mcr.microsoft.com/windows/nanoserver:ltsc2022@sha256:be37c9e8bf388c4e3ef27b4a2592b94adab551e231644ce3c9d4d3dc0a50af41 #4 resolve mcr.microsoft.com/windows/nanoserver:ltsc2022@sha256:be37c9e8bf388c4e3ef27b4a2592b94adab551e231644ce3c9d4d3dc0a50af41 0.0s done #4 DONE 0.0s #5 [2/2] RUN echo "hello" #5 CACHED #6 exporting to docker image format #6 exporting layers done #6 exporting manifest sha256:5beace3848b86d36f96ada17197ca4558cb4ae79608610094cc878529bb578d7 0.0s done #6 exporting config sha256:72a13ebdd2882395f1acaa8af867ed4d48993d7cd153a566aa135f12c96efeb4 0.0s done #6 sending tarball #6 sending tarball 4.2s done #6 DONE 4.2s afe057336777: Loading layer [==================================================>] 116.9MB/116.9MB 35185b6eab61: Loading layer [==================================================>] 73.08kB/73.08kB Loaded image: test/hello-buildkit:latest
The text was updated successfully, but these errors were encountered:
May be caused by https://github.com/containerd/console: https://github.com/containerd/console/issues/83
Sorry, something went wrong.
What do you get on the CMD shell?
Same error:
> C:\Windows\System32>buildctl.exe build --progress=tty --frontend=dockerfile.v0 --local=context=. --output=type=oci,name=test/hello-buildkit,push=false --local=dockerfile=./ --opt=filename=Dockerfile | docker load archive/tar: invalid tar header error: failed to solve: failed to copy to tar: rpc error: code = Unknown desc = write /dev/stdout: The pipe is being closed.
No branches or pull requests
Description
buildctl fails on Windows with "archive/tar: invalid tar header" for both
type=oci
andtype=docker
using CMD or PowerShell.Test Dockerfile
Additional info
Using
--progress plain
worksEnvironment
ProductName : Windows Server 2022 Datacenter Evaluation
ReleaseId : 2009
CurrentBuild : 20348
DisplayVersion : 21H2
buildctl github.com/moby/buildkit v0.17.1 8b1b83e
The text was updated successfully, but these errors were encountered: