Function brane_tsk::docker::get_container_address

source ·
pub async fn get_container_address(
    opts: impl AsRef<DockerOptions>,
    name: impl AsRef<str>,
) -> Result<String, Error>
Expand description

Tries to return the (IP-)address of the container with the given name.

Note that this function makes a separate connection to the local Docker instance.

§Arguments

  • opts: The DockerOptions that contains information on how we can connect to the local daemon.
  • name: The name of the container to fetch the address of.

§Returns

The address of the container as a string on success, or an ExecutorError otherwise.