Post

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.

  1. 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  .
  1. Paste it to this location on your Windows machine.
1
C:\ProgramData\docker\certs.d\ca.crt
  1. There is a good chance that folder certs.d does not exist yet ( please create it)

  2. Restart docker at your Windows machine

  3. 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
  1. 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.