From fc4fd8eb211686fe5fa4e23146549b442232f3e3 Mon Sep 17 00:00:00 2001 From: Aaron Feledy Date: Tue, 24 Feb 2026 23:00:38 -0600 Subject: [PATCH] fix: add --load to buildx to ensure images are available locally When building v4 services with buildx, the resulting image may not be found by Docker Compose because buildx only stores images in its cache by default. Adding --load exports the build result into the local Docker daemon. Backport of lando/core#424 --- CHANGELOG.md | 2 ++ components/docker-engine.js | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 269c404..43d5ec7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ ## {{ UNRELEASED_VERSION }} - [{{ UNRELEASED_DATE }}]({{ UNRELEASED_LINK }}) +* Fixed `buildx` built images not being available locally by adding `--load` flag [lando/core#424](https://github.com/lando/core/pull/424) + ## v4.0.0-unstable.8 - [December 9, 2025](https://github.com/lando/core-next/releases/tag/v4.0.0-unstable.8) * Updated to prep for `bunification` part 2 diff --git a/components/docker-engine.js b/components/docker-engine.js index 617a4a6..4a72278 100644 --- a/components/docker-engine.js +++ b/components/docker-engine.js @@ -251,6 +251,7 @@ class DockerEngine extends Dockerode { 'buildx', 'build', `--file=${dockerfile}`, + '--load', '--progress=plain', `--tag=${tag}`, context,