I use docker_auth and token based authentication. I configure the registry-web to use the same key file and name and issuer as the registry. But it keeps getting 401 from the registry.
In the registry log i found this:
time="2016-09-09T14:58:29Z" level=error msg="token intended for another audience: \"myrepo.example.com:5000\""
Do you have any idea which config should i check? My repo is up and running, i can login and pull packages from it. I check the repo name, key file and the issuer. Everything seems ok for me.
My registry-web.yml:
registry:
# Docker registry url
url: https://myrepo.example.com:5000/v2
# Docker registry fqdn
name: myrepo.example.com:5000
# To allow image delete, should be false
readonly: true
auth:
# Enable authentication
enabled: true
# Token issuer
# should equals to auth.token.issuer of docker registry
issuer: 'Auth Service'
# Private key for token signing
# certificate used on auth.token.rootcertbundle should signed by this key
key: /certs/myrepoexamplecom.key
My docker_auth_config.yml:
server:
addr: ":5001"
certificate: "/config/myrepoexamplecom.crt"
key: "/config/myrepoexamplecom.key"
token:
issuer: "Auth Service" # Must match issuer in the Registry config.
expiration: 900
I use docker_auth and token based authentication. I configure the registry-web to use the same key file and name and issuer as the registry. But it keeps getting 401 from the registry.
In the registry log i found this:
Do you have any idea which config should i check? My repo is up and running, i can login and pull packages from it. I check the repo name, key file and the issuer. Everything seems ok for me.
My registry-web.yml:
My docker_auth_config.yml:
And i start the registry like this: