Authorization/authentication error when trying to bootc switch to my custom Bazzite image

I'm following the instructions for creating a customized Bazzite image and hitting an error when trying to switch over to my new image:
$ sudo bootc switch ghcr.io/tmoertel/bazzite-tgm
error: Switching: Preparing import: Fetching manifest: failed to invoke method OpenImage: unable to retrieve auth token: invalid username/password: unauthorized
$ sudo bootc switch ghcr.io/tmoertel/bazzite-tgm
error: Switching: Preparing import: Fetching manifest: failed to invoke method OpenImage: unable to retrieve auth token: invalid username/password: unauthorized
I think this is the ghcr.io container registry saying I don't have permission to access the image? I'm not sure what else I should be doing. Is some authentication step missing from the docs? Thanks for any help you can share!
GitHub
GitHub - ublue-os/image-template: Build your own custom Universal B...
Build your own custom Universal Blue Image! Contribute to ublue-os/image-template development by creating an account on GitHub.
4 Replies
renner
renner3d ago
is your repo private? the container needs to be publicly available If not then you need to give bootc the authentication tokens, probably mentioned somewhere in bootc docs
trodelord
trodelordOP3d ago
Thanks! As it turns out, my container was not publicly available. I got it to work now 🙂
trodelord
trodelordOP2d ago
Interestingly, it seems that even with a public repo, container packages will be private by default: According to https://docs.github.com/en/packages/learn-github-packages/configuring-a-packages-access-control-and-visibility#configuring-visibility-of-packages-for-your-personal-account, "When you first publish a package that is scoped to your personal account, the default visibility is private and only you can see the package."
GitHub Docs
Configuring a package's access control and visibility - GitHub Docs
Choose who has read, write, or admin access to your package and the visibility of your packages on GitHub.
trodelord
trodelordOP2d ago
I have to manually mark each package as public after it is automatically built 🙁

Did you find this page helpful?