Skip to content

anhldbk/git-dock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GitDock: Git-based Docker Registry

Overview

Your corporate may block your access to DockerHub.

If Github is accessible, there's a workaround. Here's how:

  • Dump Docker images on your personal machines
  • Split the images into smaller files and store on Git (without using LFS)
  • Join and load the images on your corporate machines

Usage

Dump an image

./scripts/dump.sh <image-tag>

For example:

$ ./scripts/dump.sh alpine:latest
💾 Dumping alpine:latest...

output path: registry/alpine-latest.tar
parent dir: registry
Image file is split successfully
The file is removed. Please commit

🚀 Done

Load an image

./scripts/load.sh <image-tag>

For example:

$ ./scripts/load.sh alpine:latest
💾 Loading alpine:latest...

image path: registry/alpine-latest.tar
Joining image files...
Loaded image: alpine:latest
The temporary image file is removed.

🚀 Done

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages