Use private docker image? #186

Closed
opened 2024-04-30 13:28:47 +00:00 by FunctionalHacker · 3 comments

Is there a way to provide credentials so the runner can access a private docker registry? This is my config now and it fails to pull the image because it has no credentials

labels:
    - 'docker:docker://registry.example.com/private/image:latest'
Is there a way to provide credentials so the runner can access a private docker registry? This is my config now and it fails to pull the image because it has no credentials ```yaml labels: - 'docker:docker://registry.example.com/private/image:latest' ```
Author

I just realized I can add the container information to my workflows that allows specifying the credentials but still this would be nice to configure at the runner configuration.

I just realized I can add the container information to my workflows that allows specifying the credentials but still this would be nice to configure at the runner configuration.

Normally, pulling is done by the container engine/manager (e. g. docker). So, just do a login with your runner user (docker login registry.example.com). Normally, the credentials are stored under $HOME/.config/containers/auth.json

Normally, pulling is done by the container engine/manager (e. g. docker). So, just do a login with your runner user (docker login registry.example.com). Normally, the credentials are stored under $HOME/.config/containers/auth.json
Author

Ok, thanks a lot! Sorry for the noise

Ok, thanks a lot! Sorry for the noise
Sign in to join this conversation.
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
forgejo/runner#186
No description provided.