Can`t donwload Postgres:9.6 via "docker pull postgres:9.6"

I am trying to install Postgres:9.6 with this command “docker pull postgres:9.6” in Red Hat 8.9. But I`m getting this error:

error pulling image configuration: download failed after attempts=6: tls: failed to verify certificate: x509: certificate signed by unknown authority

I red that the workaround is to add in “/etc/docker/daemon.json” this line:

{ 
"insecure-registries": ["docker.io"]
}

but it still not working. I tested this command on a test virtual machine and its working, but not on the Prod machine. It looks like its trying to pull it from here:

docker.io/library/postgres:9.6

I have aslo tried this command to download the certificate:

“openssl s_client -connect docker.io:443 -servername registry-1.docker.io -showcerts < /dev/null”

and then executed "update-ca-trust ", but still dont work.

Any ideas?

Docker version: 26.0.0, build 2ae903e

You forgot to share the output of this command:

openssl s_client -connect docker.io:443 -servername registry-1.docker.io -showcerts < /dev/null

It would have shown us if your request actually ends up on the expected endpoint.

People that experience this problem usually either work in a corporate network that enforces tls inspection, configured an override in their hosts file, or have a proxy configured that causes this.

This is neither an issue with the docker hub registry, nor docker itself. It’s local to something configured on your machine or your network.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.