Closed alherm7 closed 3 months ago
The Docker extension requires a PAT with slightly higher permissions than the CLI, because of the need to browse images in the registry--something the CLI cannot do. Can you try creating a classic token (not the new fine-grained ones) with the repo
and write:packages
scopes and see if that works?
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!
Thanks @bwateratmsft , That did the trick! Now it's working.
I can use the docker CLI to login to our company GHCR but when I use the same personal access token in the VScode docker plugin to log in, i consistenly get a 'Request to https://api.github.com/user/orgs failed with status 403: Forbidden' error. However, when I use the docker cli, all is good. The commands i use in the terminal are the following:
export CR_PAT=
echo $CR_PAT | docker login ghcr.io -u alherm7 --password-stdin
WARNING! Your password will be stored unencrypted in /Users/ahb/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
Does this occur consistently? Yes Repro steps:
Version: 1.29.0 OS: darwin OS Release: 23.2.0 Product: Visual Studio Code Product Version: 1.87.2 Language: en