V
V
vlarkanov2020-09-28 14:52:08
System administration
vlarkanov, 2020-09-28 14:52:08

Problem with authorization in Docker registry?

Good afternoon. There is a register, on the client machine there is a certificate
/etc/docker/certs.d/docker.companyname/ca.crt

there is a Dockerfile indicating to use this image:
FROM docker.companyname/app-dev:latest

If you do docker build . - everything is fine, the image is downloading. But if use this Docker-file in docker-compose

app:
    <<: *runit-defaults
    build:
      context: lib/docker/app


I am getting an error:

#4 [1/4] FROM docker.companyname/app-dev:latest
#4 resolve docker.companyname/app-dev:latest 0.1s done
#4 ERROR: failed to do request: Head https://docker.companyname/v2/app-dev/manifests/latest: x509: certificate signed by unknown authority


Who is to blame and what to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vlarkanov, 2020-09-28
@vlarkanov

Managed to figure it out. You need to upload (for example, through a browser) a self-signed registry certificate, put it in /usr/local/share/ca-certificates under the name docker.companyname.crt and run update-ca-certificates.
That's it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question