You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have my own gitlab instance with a private container registry. This has worked fine when using regular docker compose.
I am logged in to my registry:
❯ sudo podman login my.private.registry
[sudo] password for sh54:
Authenticating with existing credentials for my.private.registry
Existing credentials are valid. Already logged in to my.private.registry
Interacting with stuff in my registry via plain podman works just fine. Things fall apart once arion gets involved.
I also have a separate systemd service defined that logs into my container registry.
Workaround
If I manually pull my image then doing a nixos-rebuild or restarting the relevant arion service gets things working as it should do.
sudo and a systemd service are quite different in terms of their environment. The latter runs with few environment variables and generally less access to stuff, whereas a command that runs via sudo can use SUDO_USER to figure out where your user config is and use that for authentication. I don't know whether that's exactly what's happening, but either way, you'll have to configure the systemd service to have access to registry credentials, because by default it doesn't know how to authenticate with any private registries.
I haven't needed this, but I'd welcome additions to the docs and/or NixOS module.
If I use an image from a private registry Arion does not seem able to retrieve them. I get a 403 Forbidden.
Error from service
Example configuration
More context
I have my own gitlab instance with a private container registry. This has worked fine when using regular docker compose.
I am logged in to my registry:
Interacting with stuff in my registry via plain podman works just fine. Things fall apart once arion gets involved.
I also have a separate systemd service defined that logs into my container registry.
Workaround
If I manually pull my image then doing a
nixos-rebuild
or restarting the relevant arion service gets things working as it should do.e.g.:
brings things online correctly. This is very annoying though.
The text was updated successfully, but these errors were encountered: