From 8f8bc9fd9edff2e3a66a328752867ae8e6ce6fbb Mon Sep 17 00:00:00 2001 From: Tiger Kaovilai Date: Mon, 25 Mar 2024 11:02:36 +0700 Subject: [PATCH] Add notes for podman / colima usage on macOS Signed-off-by: Tiger Kaovilai --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index 41c4f3ef56..ce752cb167 100644 --- a/Makefile +++ b/Makefile @@ -74,8 +74,18 @@ else GCR_IMAGE_TAGS ?= $(GCR_IMAGE):$(VERSION) endif +# check buildx is enabled +# macOS/Windows docker cli without Docker Desktop license: https://github.com/abiosoft/colima +# To add buildx to docker cli: https://github.com/abiosoft/colima/discussions/273#discussioncomment-2684502 ifeq ($(shell docker buildx inspect 2>/dev/null | awk '/Status/ { print $$2 }'), running) BUILDX_ENABLED ?= true +# if emulated docker cli from podman, assume enabled +# emulated docker cli from podman: https://podman-desktop.io/docs/migrating-from-docker/emulating-docker-cli-with-podman +# podman known issues: +# - on remote podman, such as on macOS, +# --output issue: https://github.com/containers/podman/issues/15922 +else ifeq ($(shell cat $(shell which docker) | grep -c "exec podman"), 1) + BUILDX_ENABLED ?= true else BUILDX_ENABLED ?= false endif