https://github.com/bzon/migrate-docker-repos
A command-line tool for migrating docker images from source repository to target repository
https://github.com/bzon/migrate-docker-repos
devops docker
Last synced: about 1 year ago
JSON representation
A command-line tool for migrating docker images from source repository to target repository
- Host: GitHub
- URL: https://github.com/bzon/migrate-docker-repos
- Owner: bzon
- Created: 2020-05-19T19:14:11.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-19T19:48:39.000Z (almost 6 years ago)
- Last Synced: 2025-01-22T08:28:33.227Z (about 1 year ago)
- Topics: devops, docker
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## migrate-docker-repos
A command-line tool for migrating docker images from source repository to target repository
To download the binary, see the [release page](https://github.com/bzon/migrate-docker-repos/releases/).
### Usage
Create the program `config.yaml` file.
```yaml
- tag: 0.19.0
source_repo: quay.io/kubernetes-ingress-controller/nginx-ingress-controller
target_repo: eu.gcr.io/your-org/nginx-ingress-controller # gcr
- tag: v0.11.0
source_repo: quay.io/thanos/thanos
target_repo: your-org/thanos
```
Run the program.
```bash
# Ensure to setup your docker login to target repos if necessary
# For example:
docker login -u _json_key -p "$GCLOUD_SERVICE_KEY" eu.gcr.io
# Run the program using Go
go run main.go
# Run the program using the downloaded binary
./migrate-docker-repos
```