fix: align default docker image download with the docker integration (#9842)

The docker image that we download should match the one we expect
while running tests in docker.
This commit is contained in:
Andrey Lushnikov 2021-10-28 02:15:26 -07:00 committed by GitHub
parent 4b22e1d54a
commit f15ff0354b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,7 +115,7 @@ program
const installDockerImage = args.some(arg => arg === 'docker-image');
args = args.filter(arg => arg !== 'docker-image');
if (installDockerImage) {
const imageName = `mcr.microsoft.com/playwright:v${getPlaywrightVersion()}`;
const imageName = `mcr.microsoft.com/playwright:v${getPlaywrightVersion()}-focal`;
const { code } = await spawnAsync('docker', ['pull', imageName], { stdio: 'inherit' });
if (code !== 0) {
console.log('Failed to pull docker image');