Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

If only one port is exposed on container no IP is generated from template #15

Open
dinana opened this issue Nov 26, 2016 · 2 comments
Open

Comments

@dinana
Copy link

dinana commented Nov 26, 2016

I discovered that if a container has only one port exposed no IPs is generated in conf.d/default, consequently I believe that this part is at fault:
{{/* If only 1 port exposed, use that */}} {{ if eq $addrLen 1 }} {{ with $address := index $value.Addresses 0 }} # {{$value.Name}} server {{ $address.IP }}:{{ $address.Port }}; {{ end }}

@biquetto
Copy link

biquetto commented Feb 13, 2017

same here 👍

@jrtechs
Copy link

jrtechs commented Dec 20, 2020

OMG seeing this issue open earlier could have saved me so much time. Is there a reason why exposing more than one port should make a difference?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants