Docker push to remote registry via self signed SSL certificate
How to push Docker images to a remote registry that uses a self-signed SSL certificate by installing the CA cert locally.
- Download the CA (Certificate Authority) certificate from your server to your local machine.
1
scp root@vm027.qa.cz....com:/etc/pki/tls/certs/docker-registry-ca.crt .
- Paste it to this location on your Windows machine.
1
C:\ProgramData\docker\certs.d\ca.crt
There is a good chance that folder certs.d does not exist yet ( please create it)
Restart docker at your Windows machine
Tag the image with the remote server name and port so Docker knows where to push it.
1
docker tag some-docker-image <vm027.qa.cz.company.com>:5000/some-docker-image
- Push the tagged image to the remote registry.
1
docker push <vm027.qa.cz.company.com>:5000/some-docker-image
This post is licensed under CC BY 4.0 by the author.