Function brane_tsk::docker::get_digest
source · pub async fn get_digest(path: impl AsRef<Path>) -> Result<String, Error>
Expand description
Given an image.tar
file, extracts the Docker digest (i.e., image ID) from it and returns it.
§Arguments
path
: Theimage.tar
file to extract the digest from.
§Returns
The image’s digest as a string. Does not include sha:...
.
§Errors
This function errors if the given image.tar could not be read or was in an incorrect format.