I'm getting an error when I try to start a docker_auth docker container:
Failed to load config: failed to load server cert and key: tls: failed to parse private key
This is my docker_auth configuration:
server:
addr: ":5001"
certificate: "/cert/cert.pem"
key: "/cert/key.pem"
token:
issuer: "Acme auth server" # Must match issuer in the Registry config.
expiration: 900
users:
# Password is specified as a BCrypt hash. Use `htpasswd -nB USERNAME` to generate.
"seanomik":
password: "REDACTED"
acl:
- match: {account: "seanomik"}
actions: ["*"]
comment: "Has full access to everything."
- match: {account: "/.+/"}
actions: ["push", "pull"]
comment: "Logged in users can push and pull."
- match: {account: ""}
actions: ["pull"]
comment: "Anonymous users can only pull."
I'm getting an error when I try to start a
docker_auth
docker container:This is my
docker_auth
configuration:And this is the
docker-compose
:The
.cert
directory haskey.pem
andcert.pem
which I generated with this openssl command: