I have pushed a private base image for codespaces to ghcr.io.
When I specify this image in devcontainer.json:
, I get this error:
docker: Error response from daemon: Head "https://ghcr.io/v2/my-org/image-name/manifests/latest": unauthorized. See 'docker run --help'.
I can do this locally (where I am authenticated) without issue
docker pull ghcr.io/my-org/image-name:latest
The docs only mentions how to authenticate in Github Actions, but not in devcontainer setup for codespaces.
So, how do I authenticate Codespaces to read this private docker image, hosted on Github Registry?