Docker Push an Image to a Remote Server

Reading Time: < 1 minute

I needed to be able to push an image from my CI/CD server. Before I was using docker-hub to host my images and wanted to streamline the process. I would build my code >> build my image >> push to docker-hub >> have my server download the new image from docker-hub >> than update / restart container.


  1. CI/CD Build
  2. Push image to Remote Server
  3. Stop container / Restart

Things needed:

Python / PIP
docker-push-ssh (

Assuming you have docker and python installed, and you have have setup ssh for key access.

Setup docker-push-ssh

I followed the guide to add an insecure registry to docker for linux.

Build a test image


Push image to remote server


Useful Commands

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.