Skip to content

docker/buildkit-syft-scanner:stable-1 image is not available for Windows #142

@olljanat

Description

@olljanat

At the moment attempt to generate SBOM in Windows fails to error:

#2 resolve image config for docker-image://docker.io/docker/buildkit-syft-scanner:stable-1
#2 ERROR: no match for platform in manifest: not found

I managed to get it working by building Windows version of this like this:

Binary build in Linux

export GOOS=windows
go build -o syft-scanner.exe cmd/syft-scanner/main.go

Docker image build

docker build . -t ollijanatuinen/buildkit-syft-scanner:win2025
docker push ollijanatuinen/buildkit-syft-scanner:win2025

Dockerfile content was simply:

FROM mcr.microsoft.com/windows/nanoserver:ltsc2025
COPY syft-scanner.exe /
ENTRYPOINT [ "C:\\syft-scanner.exe" ]

Then SBOM generation works by providing parameters --provenance=true --attest type=sbom,generator=docker.io/ollijanatuinen/buildkit-syft-scanner:win2025 for docker build 🚀

However, tmpfs mount from https://github.com/moby/buildkit/blob/v0.23/frontend/attestations/sbom/sbom.go#L87 needs to be disabled as well (created moby/buildkit#6093 about that).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions