Skip to content
This repository was archived by the owner on Oct 6, 2025. It is now read-only.
This repository was archived by the owner on Oct 6, 2025. It is now read-only.

Bug: Prexisting docker logins take precedence over sc docker logins #29

@BenjiMilan

Description

@BenjiMilan

Problem/Opportunity

If you have previously docker logged into a registry and then sc docker login to the same registry sc docker will attempt to use the docker credentials.

This can cause unexpected breakages where you have expired credentials for example in your .docker/config.json

Steps to reproduce

docker login ghcr.io (with bad credentials)
sc docker login ghcr.io/<registry> (with good credentials)

sc docker run ghcr.io/<registry>/<image>
Docker error: bad credentials

Expected Behavior

sc docker login credentials should be prioritised over docker login credentials.

Actual Behavior

docker login credentials are prioritised over sc docker login credentials

Notes (Optional)

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions