openssl s_client -showcerts -connect [registry_address]:[registry_port] < /dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > ca.crt sudo cp ca.crt /usr/local/share/ca-certificates/ sudo update-ca-certificates systemctl restart docker
openssl s_client -showcerts -connect [registry_address]:[registry_port] < /dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > ca.crt sudo cp ca.crt /usr/local/share/ca-certificates/ sudo update-ca-certificates systemctl restart docker