Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.
/ regisshtry Public archive

Super simplistic docker registry alternative. Docker save / load per ssh on a remote host.

Notifications You must be signed in to change notification settings

smallpdf/regisshtry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Regisshtry

Super simplistic docker registry alternative. Docker save / load via ssh on remote host.

  • Stores the images as tar files on a remote host
  • Keeps every pushed image as independent tarball with incremental numbered file names
  • Dependency-free (depends only common unix tools)

Makes deployments as easy as:

ssh $REGISSHTRY_REMOTE cat ${REGISSHTRY_PATH}/${IMAGE} | docker load

Using ssh agent forwarding you can avoid storing credentials on the host you deploy to.

File structure

regishhtry-receive receives docker images on the remote host.

It stores the images under following path:

${REGISSHTRY_PATH}/${IMAGE}     a symlink to the last pushed image.
${REGISSHTRY_PATH}/${IMAGE}.X   the actual image

where

REGISSHTRY_PATH is a configurable path to the registry
IMAGE           is the image name e.g. smallpdf/example
X               is an auto-incrementing number

Installation

  • Set your local environment variables
    • REGISHHTRY_REMOTE to ssh login e.g. "user@remote-host"
    • REGISHHTRY_PATH to a remote path e.g. "/home/user/registry"
  • run ./install.sh /usr/local/bin or where ever you want to install it
    • will install regisshtry-pull / regisshtry-push locally and regisshtry-receive on the remote host
  • Good to go

Usage

Push image

Push a local image to the registry

regisshtry-push image

Pull image

Load a image from the registry

regisshtry-pull image

About

Super simplistic docker registry alternative. Docker save / load per ssh on a remote host.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages