mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Merge pull request #108310 from csantanapr/add-check-colima
add check for colima docker socket as fall back
This commit is contained in:
		@@ -189,8 +189,8 @@ function kube::build::verify_prereqs() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
function kube::build::docker_available_on_osx() {
 | 
					function kube::build::docker_available_on_osx() {
 | 
				
			||||||
  if [[ -z "${DOCKER_HOST}" ]]; then
 | 
					  if [[ -z "${DOCKER_HOST}" ]]; then
 | 
				
			||||||
    if [[ -S "/var/run/docker.sock" ]]; then
 | 
					    if [[ -S "/var/run/docker.sock" ]] || [[ -S "$(docker context inspect --format  '{{.Endpoints.docker.Host}}' | awk -F 'unix://' '{print $2}')" ]]; then
 | 
				
			||||||
      kube::log::status "Using Docker for MacOS"
 | 
					      kube::log::status "Using docker on macOS"
 | 
				
			||||||
      return 0
 | 
					      return 0
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user