From b8bd6f190b1375e144aee0e485d16dd98ef2767b Mon Sep 17 00:00:00 2001 From: Carlos Santana Date: Thu, 24 Feb 2022 22:04:39 -0500 Subject: [PATCH] make docker socket more generic than colima Signed-off-by: Carlos Santana --- build/common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/common.sh b/build/common.sh index 4d5cc27f5b6..20bcee7b29d 100755 --- a/build/common.sh +++ b/build/common.sh @@ -189,8 +189,8 @@ function kube::build::verify_prereqs() { function kube::build::docker_available_on_osx() { if [[ -z "${DOCKER_HOST}" ]]; then - if [[ -S "/var/run/docker.sock" ]] || [[ -S "${HOME}/.colima/docker.sock" ]]; then - kube::log::status "Using Docker for MacOS" + if [[ -S "/var/run/docker.sock" ]] || [[ -S "$(docker context inspect | jq -r '.[0].Endpoints.docker.Host' | awk -F 'unix://' '{print $2}')" ]]; then + kube::log::status "Using docker on macOS" return 0 fi