Skip to content

Commit 35630c7

Browse files
authored
Newer docker cli expects --load on build (#1593)
This is because docker build has become aliased to docker buildx build whose default no longer load build result to docker images which mean subsequent call to `docker-push` target fails. Signed-off-by: Tiger Kaovilai <[email protected]>
1 parent 06081c0 commit 35630c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ ifneq ($(CLUSTER_TYPE),)
240240
DOCKER_BUILD_ARGS = --platform=$(CLUSTER_OS)/$(CLUSTER_ARCH)
241241
endif
242242
docker-build: ## Build docker image with the manager.
243-
$(CONTAINER_TOOL) build -t $(IMG) . $(DOCKER_BUILD_ARGS)
243+
$(CONTAINER_TOOL) build --load -t $(IMG) . $(DOCKER_BUILD_ARGS)
244244

245245
docker-push: ## Push docker image with the manager.
246246
$(CONTAINER_TOOL) push ${IMG}
@@ -384,7 +384,7 @@ nullable-crds-config:
384384

385385
.PHONY: bundle-build
386386
bundle-build: ## Build the bundle image.
387-
$(CONTAINER_TOOL) build -f bundle.Dockerfile -t $(BUNDLE_IMG) . $(DOCKER_BUILD_ARGS)
387+
$(CONTAINER_TOOL) build --load -f bundle.Dockerfile -t $(BUNDLE_IMG) . $(DOCKER_BUILD_ARGS)
388388

389389
.PHONY: bundle-push
390390
bundle-push: ## Push the bundle image.

0 commit comments

Comments
 (0)