Skip to content

Fix Docker build to use --load for single-platform images#140402

Merged
breskeby merged 2 commits intoelastic:mainfrom
breskeby:fix-cross-platform-docker
Jan 9, 2026
Merged

Fix Docker build to use --load for single-platform images#140402
breskeby merged 2 commits intoelastic:mainfrom
breskeby:fix-cross-platform-docker

Conversation

@breskeby
Copy link
Contributor

@breskeby breskeby commented Jan 8, 2026

Add --load flag to single-platform Docker builds to ensure images are
loaded into the local Docker daemon as regular images rather than
manifest lists.

This fixes an issue with Docker 23.0+ where BuildKit-enabled builds
can create manifest lists even for single-platform builds, which breaks
the docker manifest create command that expects single-platform images
as input when creating multi-arch manifests.

The --load flag forces the built image to be loaded into the local
Docker image store, preventing it from being stored as a manifest list.

Add --load flag to single-platform Docker builds to ensure images are
loaded into the local Docker daemon as regular images rather than
manifest lists.

This fixes an issue with Docker 23.0+ where BuildKit-enabled builds
can create manifest lists even for single-platform builds, which breaks
the docker manifest create command that expects single-platform images
as input when creating multi-arch manifests.

The --load flag forces the built image to be loaded into the local
Docker image store, preventing it from being stored as a manifest list.
@breskeby breskeby requested a review from a team as a code owner January 8, 2026 20:42
@breskeby breskeby added >non-issue :Delivery/Build Build or test infrastructure Team:Delivery Meta label for Delivery team auto-backport Automatically create backport pull requests when merged v9.3.1 v9.4.0 v9.1.11 v8.19.11 v9.2.5 labels Jan 8, 2026
@breskeby breskeby self-assigned this Jan 8, 2026
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-delivery (Team:Delivery)

Copy link
Contributor

@jozala jozala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@breskeby breskeby merged commit aaf4bea into elastic:main Jan 9, 2026
34 of 36 checks passed
breskeby added a commit to breskeby/elasticsearch that referenced this pull request Jan 9, 2026
…0402)

Add --load flag to single-platform Docker builds to ensure images are
loaded into the local Docker daemon as regular images rather than
manifest lists.

This fixes an issue with Docker 23.0+ where BuildKit-enabled builds
can create manifest lists even for single-platform builds, which breaks
the docker manifest create command that expects single-platform images
as input when creating multi-arch manifests.

The --load flag forces the built image to be loaded into the local
Docker image store, preventing it from being stored as a manifest list.
breskeby added a commit to breskeby/elasticsearch that referenced this pull request Jan 9, 2026
…0402)

Add --load flag to single-platform Docker builds to ensure images are
loaded into the local Docker daemon as regular images rather than
manifest lists.

This fixes an issue with Docker 23.0+ where BuildKit-enabled builds
can create manifest lists even for single-platform builds, which breaks
the docker manifest create command that expects single-platform images
as input when creating multi-arch manifests.

The --load flag forces the built image to be loaded into the local
Docker image store, preventing it from being stored as a manifest list.
breskeby added a commit to breskeby/elasticsearch that referenced this pull request Jan 9, 2026
…0402)

Add --load flag to single-platform Docker builds to ensure images are
loaded into the local Docker daemon as regular images rather than
manifest lists.

This fixes an issue with Docker 23.0+ where BuildKit-enabled builds
can create manifest lists even for single-platform builds, which breaks
the docker manifest create command that expects single-platform images
as input when creating multi-arch manifests.

The --load flag forces the built image to be loaded into the local
Docker image store, preventing it from being stored as a manifest list.
breskeby added a commit to breskeby/elasticsearch that referenced this pull request Jan 9, 2026
…0402)

Add --load flag to single-platform Docker builds to ensure images are
loaded into the local Docker daemon as regular images rather than
manifest lists.

This fixes an issue with Docker 23.0+ where BuildKit-enabled builds
can create manifest lists even for single-platform builds, which breaks
the docker manifest create command that expects single-platform images
as input when creating multi-arch manifests.

The --load flag forces the built image to be loaded into the local
Docker image store, preventing it from being stored as a manifest list.
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
9.3
9.1
8.19
9.2

elasticsearchmachine pushed a commit that referenced this pull request Jan 9, 2026
…140438)

Add --load flag to single-platform Docker builds to ensure images are
loaded into the local Docker daemon as regular images rather than
manifest lists.

This fixes an issue with Docker 23.0+ where BuildKit-enabled builds
can create manifest lists even for single-platform builds, which breaks
the docker manifest create command that expects single-platform images
as input when creating multi-arch manifests.

The --load flag forces the built image to be loaded into the local
Docker image store, preventing it from being stored as a manifest list.
elasticsearchmachine pushed a commit that referenced this pull request Jan 9, 2026
…140440)

Add --load flag to single-platform Docker builds to ensure images are
loaded into the local Docker daemon as regular images rather than
manifest lists.

This fixes an issue with Docker 23.0+ where BuildKit-enabled builds
can create manifest lists even for single-platform builds, which breaks
the docker manifest create command that expects single-platform images
as input when creating multi-arch manifests.

The --load flag forces the built image to be loaded into the local
Docker image store, preventing it from being stored as a manifest list.
szybia added a commit to szybia/elasticsearch that referenced this pull request Jan 9, 2026
* upstream/main: (76 commits)
  [Inference API] Get _services skips EIS authorization call if CCM is not configured (elastic#139964)
  Improve TSDB codec benchmarks with full encoder and compression metrics (elastic#140299)
  ESQL: Consolidate test `BlockLoaderContext`s (elastic#140403)
  ESQL: Improve Lookup Join performance with CachedDirectoryReader (elastic#139314)
  ES|QL: Add more examples for the match operator (elastic#139815)
  ESQL: Add timezone to add and sub operators, and ConfigurationAware planning support (elastic#140101)
  ESQL: Updated ToIp tests and generated documentation for map parameters (elastic#139994)
  Disable _delete_by_query and _update_by_query for CCS/stateful (elastic#140301)
  Remove unused method ElasticInferenceService.translateToChunkedResults (elastic#140442)
  logging hot threads on large queue of the management threadpool (elastic#140251)
  Search functions docs cleanup (elastic#140435)
  Unmute 350_point_in_time/point-in-time with index filter (elastic#140443)
  Remove unused methods (elastic#140222)
  Add CPS and `project_routing` support for `_mvt` (elastic#140053)
  Streamline `ShardDeleteResults` collection (elastic#140363)
  Fix Docker build to use --load for single-platform images (elastic#140402)
  Parametrize + test VectorScorerOSQBenchmark (elastic#140354)
  `RecyclerBytesStreamOutput` using absolute offsets (elastic#140303)
  Define bulk float native methods for vector scoring (elastic#139885)
  Make `TimeSeriesAggregate` `TimestampAware` (elastic#140270)
  ...
jimczi pushed a commit to jimczi/elasticsearch that referenced this pull request Jan 12, 2026
…0402)

Add --load flag to single-platform Docker builds to ensure images are
loaded into the local Docker daemon as regular images rather than
manifest lists.

This fixes an issue with Docker 23.0+ where BuildKit-enabled builds
can create manifest lists even for single-platform builds, which breaks
the docker manifest create command that expects single-platform images
as input when creating multi-arch manifests.

The --load flag forces the built image to be loaded into the local
Docker image store, preventing it from being stored as a manifest list.
breskeby added a commit that referenced this pull request Jan 13, 2026
…140439)

Add --load flag to single-platform Docker builds to ensure images are
loaded into the local Docker daemon as regular images rather than
manifest lists.

This fixes an issue with Docker 23.0+ where BuildKit-enabled builds
can create manifest lists even for single-platform builds, which breaks
the docker manifest create command that expects single-platform images
as input when creating multi-arch manifests.

The --load flag forces the built image to be loaded into the local
Docker image store, preventing it from being stored as a manifest list.
breskeby added a commit that referenced this pull request Jan 13, 2026
…140437)

Add --load flag to single-platform Docker builds to ensure images are
loaded into the local Docker daemon as regular images rather than
manifest lists.

This fixes an issue with Docker 23.0+ where BuildKit-enabled builds
can create manifest lists even for single-platform builds, which breaks
the docker manifest create command that expects single-platform images
as input when creating multi-arch manifests.

The --load flag forces the built image to be loaded into the local
Docker image store, preventing it from being stored as a manifest list.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged :Delivery/Build Build or test infrastructure >non-issue Team:Delivery Meta label for Delivery team v8.19.11 v9.1.11 v9.2.5 v9.3.1 v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants