lib/minke/docker/docker_runner.rb in minke-1.0.6 vs lib/minke/docker/docker_runner.rb in minke-1.0.7
- old
+ new
@@ -2,10 +2,10 @@
module Docker
class DockerRunner
##
# returns the ip address that docker is running on
def get_docker_ip_address
- if ENV['DOCKER_HOST']
+ if !ENV['DOCKER_HOST'].to_s.empty?
# dockerhost set
host = ENV['DOCKER_HOST'].dup
host.gsub!(/tcp:\/\//, '')
host.gsub!(/:\d+/,'')