Skip to content
This repository has been archived by the owner on Dec 22, 2020. It is now read-only.

jshmrtn/docker-mirror

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Mirror Docker

Mirror a Docker repository to another server.

Usage

Docker

docker run
  -v /var/run/docker.sock:/var/run/docker.sock
  -ti
  -e FROM_USERNAME="[FROM_USERNAME]" \
  -e FROM_PASSWORD="[FROM_PASSWORD]" \
  -e FROM_SERVER="[FROM_SERVER]" \
  -e TO_USERNAME="[TO_USERNAME]" \
  -e TO_PASSWORD="[TO_PASSWORD]" \
  -e TO_SERVER="[TO_SERVER]" \
  jshmrtn/docker-mirror \
  [FROM_REPO] [TO_REPO]

Bash

export FROM_USERNAME="[FROM_USERNAME]"
export FROM_PASSWORD="[FROM_PASSWORD]"
export FROM_SERVER="[FROM_SERVER]"
export TO_USERNAME="[TO_USERNAME]"
export TO_PASSWORD="[TO_PASSWORD]"
export TO_SERVER="[TO_SERVER]"

./bin/entrypoint [FROM_REPO] [TO_REPO]

Releases

No releases published

Packages

No packages published