Function brane_tsk::docker::remove_image
source · pub async fn remove_image(
opts: impl AsRef<DockerOptions>,
image: &Image,
) -> Result<(), Error>
Expand description
Tries to remove the docker image 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 image to remove.
§Errors
This function errors if removing the image failed. Reasons for this may be if the image did not exist, the Docker engine was not reachable, or …