chore: add deprecation notice
This commit is contained in:
1 parent
267cc3fd54
commit
50361505db
1 file changed
+1
-1
@@ -119,7 +119,7 @@ func GetContainerIpaddress(appName, processType, containerID string) (ipAddr str
|
|||||||
|
|
||||||
b, err := common.DockerInspect(containerID, fmt.Sprintf("{{ $network := index .NetworkSettings.Networks \"%s\" }}{{ $network.IPAddress}}", initialNetwork))
|
b, err := common.DockerInspect(containerID, fmt.Sprintf("{{ $network := index .NetworkSettings.Networks \"%s\" }}{{ $network.IPAddress}}", initialNetwork))
|
||||||
if err != nil || len(b) == 0 {
|
if err != nil || len(b) == 0 {
|
||||||
// docker < 1.9 compatibility
|
// Deprecated: docker < 1.9 compatibility
|
||||||
b, err = common.DockerInspect(containerID, "{{ .NetworkSettings.IPAddress }}")
|
b, err = common.DockerInspect(containerID, "{{ .NetworkSettings.IPAddress }}")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user