diff --git a/src/docker/install.ts b/src/docker/install.ts index 7664972..1c35589 100644 --- a/src/docker/install.ts +++ b/src/docker/install.ts @@ -594,7 +594,10 @@ EOF`, } const releases = >JSON.parse(body); if (!releases[version]) { - throw new Error(`Cannot find Docker release ${version} in ${url}`); + if (!releases['v' + version]) { + throw new Error(`Cannot find Docker release ${version} in ${url}`); + } + return releases['v' + version]; } return releases[version]; }