Skip to content

windows: support basic cross-platform builds from windows #5758

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

Open
profnandaa opened this issue Feb 19, 2025 · 0 comments
Open

windows: support basic cross-platform builds from windows #5758

profnandaa opened this issue Feb 19, 2025 · 0 comments
Assignees
Labels

Comments

@profnandaa
Copy link
Collaborator

Description

Currently, you can build Windows images from Linux (for dockerfiles without RUN commands).
We need to reciprocate this too on Windows, being able to build basic Linux images from Windows.

This can be helpful for cross-platform software packaging.

For example:

FROM alpine

COPY / /

Build command:

> buildctl build --frontend dockerfile.v0 --local context=. --local dockerfile=--output type=image,name=docker.io/profnandaa/cross-build,push=false `
--progress plain --no-cache `
--opt platform=linux/amd64

You get this error:

#7 [2/2] COPY / /
#7 ERROR: hcsshim::ProcessBaseLayer 
\\?\C:\ProgramData\containerd\root\io.containerd.snapshotter.v1.windows\snapshots\1060: 
The system cannot find the path specified.
@profnandaa profnandaa added area/feature-parity Feature parity with classic builder area/windows labels Feb 19, 2025
@profnandaa profnandaa self-assigned this Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant