mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
make docker socket more generic than colima
Signed-off-by: Carlos Santana <csantana23@gmail.com>
This commit is contained in:
parent
bf331d53fe
commit
b8bd6f190b
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user