diff --git a/Sources/tart/Credentials/DockerConfigCredentialsProvider.swift b/Sources/tart/Credentials/DockerConfigCredentialsProvider.swift index 1e46d03f..4c9a4fa4 100644 --- a/Sources/tart/Credentials/DockerConfigCredentialsProvider.swift +++ b/Sources/tart/Credentials/DockerConfigCredentialsProvider.swift @@ -15,6 +15,10 @@ class DockerConfigCredentialsProvider: CredentialsProvider { return try executeHelper(binaryName: "docker-credential-\(helperProgram)", host: host) } + if let defaultCredsStore = config.credsStore { + return try executeHelper(binaryName: "docker-credential-\(defaultCredsStore)", host: host) + } + return nil } @@ -59,6 +63,7 @@ class DockerConfigCredentialsProvider: CredentialsProvider { struct DockerConfig: Codable { var auths: Dictionary? = Dictionary() var credHelpers: Dictionary? = Dictionary() + var credsStore: String? = nil } struct DockerAuthConfig: Codable {