Skip to content

Commit e2acba1

Browse files
committed
docker/install: Fix lima failing to download latest Docker archive
Use the actual version number resolved from the Github releases instead of the `latest` string. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
1 parent 5abb5fc commit e2acba1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

__tests__/docker/install.test.itg.ts

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ aarch64:https://cloud.debian.org/images/cloud/bookworm/20231013-1532/debian-12-g
4444
{type: 'image', tag: '27.3.1'} as InstallSourceImage,
4545
{type: 'image', tag: 'master'} as InstallSourceImage,
4646
{type: 'archive', version: 'v26.1.4', channel: 'stable'} as InstallSourceArchive,
47+
{type: 'archive', version: 'latest', channel: 'stable'} as InstallSourceArchive,
4748
])(
4849
'install docker %s', async (source) => {
4950
if (process.env.ImageOS && process.env.ImageOS.startsWith('ubuntu')) {

src/docker/install.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ export class Install {
230230
daemonConfig: limaDaemonConfig,
231231
dockerSock: `${limaDir}/docker.sock`,
232232
srcType: src.type,
233-
srcArchiveVersion: srcArchive.version?.replace(/^v/, ''),
233+
srcArchiveVersion: this._version, // Use the resolved version (e.g. latest -> 27.4.0)
234234
srcArchiveChannel: srcArchive.channel,
235235
srcImageTag: (src as InstallSourceImage).tag
236236
});

0 commit comments

Comments
 (0)