diff --git a/packages/testcontainers/src/container-runtime/auth/credential-provider.ts b/packages/testcontainers/src/container-runtime/auth/credential-provider.ts index cf08e169..7a1a13df 100644 --- a/packages/testcontainers/src/container-runtime/auth/credential-provider.ts +++ b/packages/testcontainers/src/container-runtime/auth/credential-provider.ts @@ -36,7 +36,7 @@ export abstract class CredentialProvider implements RegistryAuthLocator { return { username: response.Username, password: response.Secret, - registryAddress: response.ServerURL || credentialForRegistry, + registryAddress: response.ServerURL ?? credentialForRegistry, }; }