Skip to content

Instantly share code, notes, and snippets.

@olliefr
Last active January 15, 2025 14:40
Show Gist options
  • Save olliefr/fca737274b0ccf52847a98f830cf2bf0 to your computer and use it in GitHub Desktop.
Save olliefr/fca737274b0ccf52847a98f830cf2bf0 to your computer and use it in GitHub Desktop.
Migrating multi-architecture images across Docker Repositories

Use reglient:

src="ghcr.io/iximiuz/labs/nginx:alpine"

dst="us-central1-docker.pkg.dev/dml-sandbox-firebass-21/demorepo/nginx:alpine"

curl -LO https://github.com/regclient/regclient/releases/download/v0.8.0/regctl-linux-amd64

chmod +x regctl-linux-amd64

./regctl-linux-amd64 image copy $src $dst

Further reading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment