Skip to content

Commit

Permalink
fix: remove docker builder if it already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
dhirajsb committed Sep 18, 2024
1 parent 51870cf commit 1edf825
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1edf825

Please sign in to comment.