From 48d23cec5acd8874c215615be4ce3e563a85c355 Mon Sep 17 00:00:00 2001 From: Mathias Larsen Date: Thu, 26 Oct 2017 14:40:21 +0200 Subject: [PATCH] Fix Docker for Mac strategy detection 17.10.0-ce-mac36 --- lib/docker-sync/dependencies/docker_driver.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/docker-sync/dependencies/docker_driver.rb b/lib/docker-sync/dependencies/docker_driver.rb index 7ed23b36..31bd7f90 100644 --- a/lib/docker-sync/dependencies/docker_driver.rb +++ b/lib/docker-sync/dependencies/docker_driver.rb @@ -6,7 +6,8 @@ def self.docker_for_mac? return false unless Environment.mac? return @docker_for_mac if defined? @docker_for_mac @docker_for_mac = - system('docker info | grep -q "Operating System: Alpine Linux"') && + system('docker info | grep -q "Operating System: Alpine Linux"') || + system('docker info | grep -q "Operating System: Docker for Mac"') && system('docker info | grep -q "Docker Root Dir: /var/lib/docker"') end