Skip to content

Commit fc4fd8e

Browse files
committed
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
1 parent 04ffe61 commit fc4fd8e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## {{ UNRELEASED_VERSION }} - [{{ UNRELEASED_DATE }}]({{ UNRELEASED_LINK }})
22

3+
* Fixed `buildx` built images not being available locally by adding `--load` flag [lando/core#424](https://github.com/lando/core/pull/424)
4+
35
## v4.0.0-unstable.8 - [December 9, 2025](https://github.com/lando/core-next/releases/tag/v4.0.0-unstable.8)
46

57
* Updated to prep for `bunification` part 2

components/docker-engine.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ class DockerEngine extends Dockerode {
251251
'buildx',
252252
'build',
253253
`--file=${dockerfile}`,
254+
'--load',
254255
'--progress=plain',
255256
`--tag=${tag}`,
256257
context,

0 commit comments

Comments
 (0)