@@ -120,25 +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 ,
132- IP6LinkLocal : container .NetworkSettings .LinkLocalIPv6Address ,
133- IP6Global : container .NetworkSettings .GlobalIPv6Address ,
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 ,
134134 }
135135 for k , v := range container .NetworkSettings .Ports {
136136 address := Address {
137- IP : container .NetworkSettings .IPAddress ,
138- IP6LinkLocal : container .NetworkSettings .LinkLocalIPv6Address ,
139- IP6Global : container .NetworkSettings .GlobalIPv6Address ,
140- Port : k .Port (),
141- 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 (),
142142 }
143143 if len (v ) > 0 {
144144 address .HostPort = v [0 ].HostPort
0 commit comments