Skip to content

Commit 5e0cfa5

Browse files
authored
Fix Docker usage (#754)
1 parent 8473b5d commit 5e0cfa5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bin/helpers.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@
77
end
88

99
def running_with_docker?
10-
ENV['DOCKER_ENABLED'] == 'true' && docker_compose_installed?
10+
ENV['DOCKER_ENABLED'] == 'true' && docker_compose_installed? && docker_running?
1111
end
1212

1313
def docker_compose_installed?
1414
system('which docker-compose > /dev/null 2>&1')
1515
end
16+
17+
def docker_running?
18+
system('docker ps > /dev/null 2>&1')
19+
end

0 commit comments

Comments
 (0)