Skip to content

Commit

Permalink
Fix Docker for Mac strategy detection
Browse files Browse the repository at this point in the history
17.10.0-ce-mac36
  • Loading branch information
Mathias Larsen committed Oct 26, 2017
1 parent 78f9255 commit ffb4bbc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/docker-sync/preconditions/preconditions_osx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ def fswatch_available
end

def is_driver_docker_for_mac?
`docker info | grep 'Docker Root Dir: /var/lib/docker' && docker info | grep 'Operating System: Alpine Linux'`
$?.success?
if `docker info | grep 'Docker Root Dir: /var/lib/docker'` and `docker info | grep 'Operating System: Alpine Linux'` or `docker info | grep 'Operating System: Docker for Mac'`
$?.success?
end
end

def is_driver_docker_toolbox?
Expand Down

0 comments on commit ffb4bbc

Please sign in to comment.