@@ -120,21 +120,25 @@ func getContainers(client *docker.Client) ([]*RuntimeContainer, error) {
120120 Repository : repository ,
121121 Tag : tag ,
122122 },
123- Name : strings .TrimLeft (container .Name , "/" ),
124- Hostname : container .Config .Hostname ,
125- Gateway : container .NetworkSettings .Gateway ,
126- Addresses : []Address {},
127- Env : make (map [string ]string ),
128- Volumes : make (map [string ]Volume ),
129- Node : SwarmNode {},
130- Labels : make (map [string ]string ),
131- IP : container .NetworkSettings .IPAddress ,
123+ Name : strings .TrimLeft (container .Name , "/" ),
124+ Hostname : container .Config .Hostname ,
125+ Gateway : container .NetworkSettings .Gateway ,
126+ Addresses : []Address {},
127+ Env : make (map [string ]string ),
128+ Volumes : make (map [string ]Volume ),
129+ Node : SwarmNode {},
130+ Labels : make (map [string ]string ),
131+ IP : container .NetworkSettings .IPAddress ,
132+ IP6LinkLocal : container .NetworkSettings .LinkLocalIPv6Address ,
133+ IP6Global : container .NetworkSettings .GlobalIPv6Address ,
132134 }
133135 for k , v := range container .NetworkSettings .Ports {
134136 address := Address {
135- IP : container .NetworkSettings .IPAddress ,
136- Port : k .Port (),
137- Proto : k .Proto (),
137+ IP : container .NetworkSettings .IPAddress ,
138+ IP6LinkLocal : container .NetworkSettings .LinkLocalIPv6Address ,
139+ IP6Global : container .NetworkSettings .GlobalIPv6Address ,
140+ Port : k .Port (),
141+ Proto : k .Proto (),
138142 }
139143 if len (v ) > 0 {
140144 address .HostPort = v [0 ].HostPort
0 commit comments