MCPcopy Create free account
hub / github.com/efficientgo/e2e / dockerNetworkContainerHost

Function dockerNetworkContainerHost

env_docker.go:542–544  ·  view source on GitHub ↗

dockerNetworkContainerHost return the host address of a container within the network.

(networkName, containerName string)

Source from the content-addressed store, hash-verified

540
541// dockerNetworkContainerHost return the host address of a container within the network.
542func 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.
547func dockerNetworkContainerHostPort(networkName, containerName string, port int) string {

Callers 3

buildDockerRunArgsMethod · 0.85
containerNameMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…