From 1edf82503a9fe2cfcf568615aab54600aeb1f826 Mon Sep 17 00:00:00 2001 From: Dhiraj Bokde Date: Tue, 17 Sep 2024 12:30:48 -0700 Subject: [PATCH] fix: remove docker builder if it already exists --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b7805f9e8..3d5e1b39e 100644 --- a/Makefile +++ b/Makefile @@ -230,7 +230,8 @@ PLATFORMS ?= linux/arm64,linux/amd64,linux/s390x,linux/ppc64le image/buildx: ifeq ($(DOCKER),docker) # docker uses builder containers - $(DOCKER) buildx create --use --name model-registry-builder + - $(DOCKER) buildx rm model-registry-builder + $(DOCKER) buildx create --use --name model-registry-builder --platform=$(PLATFORMS) $(DOCKER) buildx build --push --platform=$(PLATFORMS) --tag ${IMG} -f ${DOCKERFILE} . $(DOCKER) buildx rm model-registry-builder else ifeq ($(DOCKER),podman)