Skip to main content

container_name

Function container_name 

Source
pub fn container_name() -> &'static str
Expand description

This srv instance’s forwarder’s name: the prefix and a short mark of its data directory. Two AgentMux instances on one machine (another channel, a dev build) share the Docker daemon and the agents network, and each has its own secret, so each has its own forwarder and neither replaces or removes the other’s. The same instance makes the same name at every launch. Its address on the agents network is found by this name (Docker’s own DNS on that network).