Skip to content

Commit 82d1109

Browse files
Fix image name logging when pulling
1 parent c81b942 commit 82d1109

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/testcontainers/src/container-runtime/utils/pull-image.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ export const pullImage = async (
1717
): Promise<void> => {
1818
try {
1919
if (!options.force && (await imageExists(dockerode, options.imageName))) {
20-
log.debug(`Not pulling image "${options.imageName}" as it already exists`);
20+
log.debug(`Not pulling image "${options.imageName.string}" as it already exists`);
2121
return;
2222
}
2323

24-
log.info(`Pulling image "${options.imageName}"...`);
24+
log.info(`Pulling image "${options.imageName.string}"...`);
2525
const authconfig = await getAuthConfig(options.imageName.registry ?? indexServerAddress);
2626
const stream = await dockerode.pull(options.imageName.string, { authconfig });
2727
return new Promise<void>((resolve) => {
@@ -33,7 +33,7 @@ export const pullImage = async (
3333
stream.on("end", resolve);
3434
});
3535
} catch (err) {
36-
log.error(`Failed to pull image "${options.imageName}": ${err}`);
36+
log.error(`Failed to pull image "${options.imageName.string}": ${err}`);
3737
throw err;
3838
}
3939
};

0 commit comments

Comments
 (0)