lib/minke/docker/service_discovery.rb in minke-1.8.1 vs lib/minke/docker/service_discovery.rb in minke-1.8.2
- old
+ new
@@ -40,10 +40,10 @@
def bridge_address_for network, service_name, private_port
begin
container_details = find_container_by_name "/#{@project_name}_#{service_name}_1"
ip = container_details.first.info['NetworkSettings']['Networks']["#{network}"]['IPAddress']
rescue
- raise "Unable to find bridge address for '#{service_name}' on port #{private_port}"
+ raise "Unable to find bridge address for network: #{network}, container: #{service_name}, port: #{private_port}"
end
return "#{ip}:#{private_port}"
end
:private