Skip to content
Hamal is a tool for synchronizing images between two mirrored repositories.
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmd
docker
.gitignore
.goreleaser.yml
.travis.yml
LICENSE
README.md
go.mod
go.sum
main.go

README.md

Hamal

Build Status Go Report Card GitHub

Hamal is a tool for synchronizing images between two mirrored repositories.

 _   _                       _ 
| | | | __ _ _ __ ___   __ _| |
| |_| |/ _\ | '_ \ _ \ / _\ | |
|  _  | (_| | | | | | | (_| | |
|_| |_|\__,_|_| |_| |_|\__,_|_|

Hamal is a tool for synchronizing images between two mirrored repositories. 
You can synchronize mirrors between two private image repositories.

WARN:The docker must be installed locally.
Currently only Linux and MacOS are supported.

Usage:
  hamal [command]

Available Commands:
  help        Help about any command
  run         Start syncing mirror
  version     Prints the huamal version

Flags:
      --config string   config file (default is $HOME/.hamal/config.yaml)
  -h, --help            help for hamal

Use "hamal [command] --help" for more information about a command.

----------------------------------------------------------------------------

For details, please see: https://github.com/sunny0826/hamal.git

example:
hamal run -n drone-dingtalk:latest

Usage:
  hamal run [flags]

Flags:
  -h, --help          help for run
  -n, --name string   docker name:tag

Global Flags:
      --config string   config file (default is $HOME/.hamal/config.yaml)

configuration file

$HOME/.hamal/config.yaml

author: <your-name>
license: MIT
dinput:
#  registry: <your-registry-input>    # if used dockerhub ,do not need registry
  repo: <your-repo-input>
  user: <your-user-input>
  pass: <your-pass-input>
  isdockerhub: true                   # use dockerhub
doutput:
  registry: <your-registry-input>
  repo: <your-repo-output>
  user: <your-user-output>
  pass: <your-pass-input>
  isdockerhub: false
You can’t perform that action at this time.