dockerNetworkContainerHost return the host address of a container within the network.
(networkName, containerName string)
| 540 | |
| 541 | // dockerNetworkContainerHost return the host address of a container within the network. |
| 542 | func dockerNetworkContainerHost(networkName, containerName string) string { |
| 543 | return fmt.Sprintf("%s-%s", networkName, containerName) |
| 544 | } |
| 545 | |
| 546 | // dockerNetworkContainerHostPort return the host:port address of a container within the network. |
| 547 | func dockerNetworkContainerHostPort(networkName, containerName string, port int) string { |
no outgoing calls
no test coverage detected
searching dependent graphs…