Skip to main content

handle_restore

Function handle_restore 

Source
pub async fn handle_restore(dir: &Path) -> Result<i32>
Expand description

Restore cached Docker images from tar files in the given directory.

Each .tar file is mapped back to its harmont-local/* tag via manifest::tag_from_tar_name. Images that already exist in the local Docker daemon are skipped.

ยงErrors

Returns an error if the Docker daemon is unreachable or a filesystem operation on dir fails.