namshi / roger

A continuous integration and build server for Docker containers
127 stars 26 forks source link

how to specify auth credentials for my own registry #61

Open Matthijz98 opened 4 years ago

Matthijz98 commented 4 years ago

Hi, I love your application but i have one question. In the documentation you sai you can add a registry.yourowndomain.com but how do i add a username and password for this registry?

I did read the docs 3 times but can not find it or figure it out

orbitalmute commented 4 years ago

You need to add this sections:

auth:
  registry:
    serveraddress: <registry_address>
    username: <registry_user>
    password: <registry_password>

But you will got an error: ("(HTTP code 500) server error - {"message":"Get https://registry-1.docker.io/v2/fnndsc/ubuntu-python3/tags/list: unauthorized: incorrect username or password"} This is due to the dockerode library, it tries to use these credentials globally, for the docker hub and for the private repository. I came up with only one solution - create the same user in docker hub. But it's works :)