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

Function dockerNetworkContainerHostPort

env_docker.go:547–549  ·  view source on GitHub ↗

dockerNetworkContainerHostPort return the host:port address of a container within the network.

(networkName, containerName string, port int)

Source from the content-addressed store, hash-verified

545
546// dockerNetworkContainerHostPort return the host:port address of a container within the network.
547func dockerNetworkContainerHostPort(networkName, containerName string, port int) string {
548 return fmt.Sprintf("%s:%d", dockerNetworkContainerHost(networkName, containerName), port)
549}
550
551func (d *dockerRunnable) Ready() error {
552 if !d.IsRunning() {

Callers 1

InternalEndpointMethod · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…