pub async fn join(
opts: impl AsRef<DockerOptions>,
name: impl AsRef<str>,
keep_container: bool,
) -> Result<(i32, String, String), Error>
Expand description
Joins the container with the given name, i.e., waits for it to complete and returns its results.
§Arguments
opts
: The DockerOptions that contains information on how we can connect to the local daemon.name
: The name of the container to wait for.keep_container
: If true, then will not remove the container after it has been launched. This is very useful for debugging.
§Returns
The return code of the docker container, its stdout and its stderr (in that order).
§Errors
This function may error for many reasons, which usually means that the container is unknown or the Docker engine is unreachable.