microsoft / containers-toolkit

Containers-Toolkit is a Windows PowerShell module for downloading, installing, and setting up default configs for Containerd, BuildKit, Windows CNI plugin, and nerdctl.
MIT License
14 stars 9 forks source link

Prevent Redundant Downloads on Repeated Install Attempts #25

Open TinaMor opened 2 months ago

TinaMor commented 2 months ago

Is your feature request related to a problem? Please describe. When running an install command, such as Install-Containerd, if the installation fails but the file is downloaded successfully, rerunning the command causes the files to be downloaded again. This results in unnecessary repeated downloads.

Describe the solution you'd like Enable users to utilize the existing downloaded version if it already exists, instead of downloading it again. Modify the install command (e.g., Install-Containerd) so that if it fails but the file was downloaded successfully, rerunning the command should use the existing downloaded files instead of downloading them again.