https://github.com/linbit/quaysync
This "syncs" (actually creates manifests) from one multi-arch registy to another.
https://github.com/linbit/quaysync
Last synced: about 1 month ago
JSON representation
This "syncs" (actually creates manifests) from one multi-arch registy to another.
- Host: GitHub
- URL: https://github.com/linbit/quaysync
- Owner: LINBIT
- Created: 2020-06-30T09:52:05.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-02T09:31:01.000Z (over 5 years ago)
- Last Synced: 2025-02-24T16:28:46.759Z (over 1 year ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# quaysync
This "syncs" (actually creates manifests) from one multi-arch registy to another. This most likely is of no
use outside of LINBIT.
# Why?
- quay.io does not allow "nested registries". So one can not just have "quay.io/$user/$arch/$project" and use
`prestomanifesto`.
- quay.io does not handle multi arch automagically, one has to create a manifest.
So this pulls
# Docker
This requires two bind mounts:
- the docker socket
- a `docker.json` that contains the credentials for registry
```
docker run -it --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
-v ~/.docker/config.json:/etc/docker/config.json \
linbit/quaysync -dry-run src_registry.io quay.io/quayuser drbd-utils
rm -rf ~/.docker/manifests
docker pull src_registry.io/amd64/drbd-utils:latest
docker tag src_registry.io/amd64/drbd-utils:latest quay.io/quayuser/drbd-utils-amd64:latest
docker push quay.io/quayuser/drbd-utils-amd64:latest
docker pull src_registry.io/s390x/drbd-utils:latest
docker tag src_registry.io/s390x/drbd-utils:latest quay.io/quayuser/drbd-utils-s390x:latest
docker push quay.io/quayuser/drbd-utils-s390x:latest
docker manifest create --insecure --amend quay.io/quayuser/drbd-utils:latest \
quay.io/quayuser/drbd-utils-amd64:latest quay.io/quayuser/drbd-utils-s390x:latest
docker manifest push --insecure quay.io/quayuser/drbd-utils:latest
```