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

docker build -o type=local doesn't work with Windows images #47525

Open
vvoland opened this issue Mar 7, 2024 · 0 comments
Open

docker build -o type=local doesn't work with Windows images #47525

vvoland opened this issue Mar 7, 2024 · 0 comments
Labels
containerd-integration Issues and PRs related to containerd integration kind/bug Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed. version/25.0

Comments

@vvoland
Copy link
Contributor

vvoland commented Mar 7, 2024

Description

Local exporter when extracting Windows images on Linux with containerd integration enabled.
Works fine with graphdrivers.

Reproduce

echo 'FROM dockereng/cli-bin:master' | docker buildx build - -o type=local,dest=asdf --platform windows/arm64
[+] Building 1.5s (5/5) FINISHED                                                                                 docker:desktop-linux
 => [internal] load build definition from Dockerfile                                                                             0.0s
 => => transferring dockerfile: 67B                                                                                              0.0s
 => [internal] load metadata for docker.io/dockereng/cli-bin:master                                                              1.4s
 => [internal] load .dockerignore                                                                                                0.0s
 => => transferring context: 2B                                                                                                  0.0s
 => CACHED [1/1] FROM docker.io/dockereng/cli-bin:master@sha256:0013ce37d4702d7742fc5e36dffa32a95240e472869d7efd6a4559f6a422759  0.0s
 => => resolve docker.io/dockereng/cli-bin:master@sha256:0013ce37d4702d7742fc5e36dffa32a95240e472869d7efd6a4559f6a422759c        0.0s
 => exporting to client directory                                                                                                0.0s
 => => copying files                                                                                                             0.0s

View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/ssthmlvujk5p89u2icvala1fs
❱ ls asdf
❱ file asdf/docker
asdf/docker: cannot open `asdf/docker' (No such file or directory)

❱ echo 'FROM dockereng/cli-bin:master' | docker buildx build - -o type=local,dest=asdf --platform linux/amd64
[+] Building 10.5s (5/5) FINISHED                                                                                docker:desktop-linux
 => [internal] load build definition from Dockerfile                                                                             0.0s
 => => transferring dockerfile: 67B                                                                                              0.0s
 => [internal] load metadata for docker.io/dockereng/cli-bin:master                                                              3.6s
 => [internal] load .dockerignore                                                                                                0.0s
 => => transferring context: 2B                                                                                                  0.0s
 => [1/1] FROM docker.io/dockereng/cli-bin:master@sha256:0013ce37d4702d7742fc5e36dffa32a95240e472869d7efd6a4559f6a422759c        6.6s
 => => resolve docker.io/dockereng/cli-bin:master@sha256:0013ce37d4702d7742fc5e36dffa32a95240e472869d7efd6a4559f6a422759c        0.0s
 => => sha256:1ea87b8314781767f86078ecf38d53aa7b2a95758fd8140dfbe16933dbb8ef43 16.92MB / 16.92MB                                 6.5s
 => => extracting sha256:1ea87b8314781767f86078ecf38d53aa7b2a95758fd8140dfbe16933dbb8ef43                                        0.1s
 => exporting to client directory                                                                                                6.8s
 => => copying files 35.69MB                                                                                                     0.2s

View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/ljkh0c3fuj0opvaxxqhyeyc62

❱ file asdf/docker
asdf/docker: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, Go BuildID=All6rb_OcZQ2nE7SLxqV/-bpdsBaI9sb8Mm_yLoJ2/YO3LzdIKq9J6twgR7AcS/1FGP4NGXkCE_xuZ8VjI1, BuildID[xxHash]=40b5133172e66d53, with debug_info, not stripped

❱ ls asdf
docker*

Expected behavior

Windows images should be unpacked

docker version

25.0.3 and master @ 6c10086976d07d4746e03dcfd188972a2f07e1c9

docker info

N/A

Additional Info

No response

@vvoland vvoland added kind/bug Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed. containerd-integration Issues and PRs related to containerd integration version/25.0 labels Mar 7, 2024
@vvoland vvoland changed the title -o type=local doesn't work with Windows images docker build -o type=local doesn't work with Windows images Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
containerd-integration Issues and PRs related to containerd integration kind/bug Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed. version/25.0
Projects
None yet
Development

No branches or pull requests

1 participant