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