I'm trying to preconfigure a private container registry in a CodeSpace so workshop participants can use it.
- I have rebuilt the codespace
- I tried a different prefix than
GH_
to no avail.
If I read the docs correctly, this should make sure docker can pull from ghcr using my credentials, but all I get is an error:
codespace ➜ /workspaces/attendee-jessehouwing (main) $ docker pull ghcr.io/xxxxx-customers/xxxxx-cli
Using default tag: latest
Error response from daemon: Head "https://ghcr.io/v2/xxxxx-customers/xxxxx-cli/manifests/latest": unauthorized
I searched the vscode-container repository for a hint to something I may have to configure on my custom container, but I don't really see anything wrong.
Custom container dockerfile:
FROM mcr.microsoft.com/vscode/devcontainers/universal:1-linux
USER codespace
RUN az extension add --name azure-devops
I tried in the standard vscode container and see the same behavior. I must be doing something wrong.
The secrets are registered in the same repository as a set of repository secrets and I'm launching the codespace from the same repo:
CodePudding user response:
A few questions to try and unblock you -