isDownloaded method

Future<bool> isDownloaded(
  1. String image,
  2. {String? tag = 'latest'}
)

Check if image is already downloaded

Implementation

Future<bool> isDownloaded(String image, {String? tag = 'latest'}) async {
  return File(getDistroPath().file('${filename(image, tag)}.tar.gz'))
      .existsSync();
}