Skip to content

Tests - Build Windows IIS images - use docker build kit#4876

Draft
Kielek wants to merge 2 commits intoopen-telemetry:mainfrom
Kielek:modernizie-docker-build
Draft

Tests - Build Windows IIS images - use docker build kit#4876
Kielek wants to merge 2 commits intoopen-telemetry:mainfrom
Kielek:modernizie-docker-build

Conversation

@Kielek
Copy link
Member

@Kielek Kielek commented Feb 27, 2026

Why

from test-build-windows-container-tests (windows-2022, windows-only, windows-2022)

DEPRECATED: The legacy builder is deprecated and will be removed in a future release.�[0m
               Install the buildx component to build images with BuildKit:�[0m
               https://docs.docker.com/go/buildx/�[0m

What

Tests - Build Windows IIS images - use docker build kit

Tests

CI

Checklist

  • [ ] CHANGELOG.md is updated.
  • [ ] Documentation is updated.
  • [ ] New features are covered by tests.

@Kielek Kielek force-pushed the modernizie-docker-build branch from 5ee50d4 to f2d2069 Compare March 4, 2026 16:29
@Kielek Kielek force-pushed the modernizie-docker-build branch from f2d2069 to d5c4940 Compare March 4, 2026 16:56
@Kielek
Copy link
Member Author

Kielek commented Mar 4, 2026

@nrcventura, unfortunately, I do not have good news. We should stay with deprecated version, as modern one is still in experimental stage.

I have checked, if you see any better options, please let me know. Otherwise we can close:

BuildKit and Windows Containers Investigation

Problem Summary

The CI build for Windows container tests (test-build-windows-container-tests) was failing with Docker-related errors on Windows Server 2022/2025 runners.

Root Cause

BuildKit does not properly support Windows containers. While BuildKit has experimental Windows support since v0.13, it requires complex manual setup and is not production-ready.

Attempts Made

Attempt 1: Enable BuildKit

  • Action: Set DOCKER_BUILDKIT=1 environment variable
  • Result: ❌ Failed
  • Error: ERROR: BuildKit is enabled but the buildx component is missing or broken

Attempt 2: Install buildx via docker/setup-buildx-action

  • Action: Added docker/setup-buildx-action@v3 step to CI workflow
  • Result: ❌ Failed
  • Error: no matching manifest for windows(10.0.20348)/amd64 in the manifest list entries
  • Reason: The action tried to pull a Linux-based buildkit container which doesn't work on Windows

Attempt 3: Use buildx with docker driver

  • Action: Added driver: docker to buildx setup
  • Result: ❌ Failed
  • Error: buildkit executor not implemented for windows
  • Reason: BuildKit's executor simply doesn't support Windows containers, even with the native docker driver

References

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant