{"id":21702644,"url":"https://github.com/alpine-docker/crane","last_synced_at":"2026-05-15T23:41:24.717Z","repository":{"id":208052605,"uuid":"720713337","full_name":"alpine-docker/crane","owner":"alpine-docker","description":"crane is a tool for interacting with remote images and registries.","archived":false,"fork":false,"pushed_at":"2024-10-08T12:17:49.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-25T15:27:49.634Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alpine-docker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-19T11:17:32.000Z","updated_at":"2024-10-08T12:17:53.000Z","dependencies_parsed_at":"2023-11-19T12:29:47.338Z","dependency_job_id":"deaeb275-e6ad-4d1f-aacb-86d628011527","html_url":"https://github.com/alpine-docker/crane","commit_stats":null,"previous_names":["alpine-docker/crane"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alpine-docker%2Fcrane","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alpine-docker%2Fcrane/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alpine-docker%2Fcrane/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alpine-docker%2Fcrane/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alpine-docker","download_url":"https://codeload.github.com/alpine-docker/crane/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244649459,"owners_count":20487429,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-25T21:17:03.841Z","updated_at":"2026-05-15T23:41:19.698Z","avatar_url":"https://github.com/alpine-docker.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# crane\n\nhttps://github.com/google/go-containerregistry/tree/main/cmd/crane\n\nFollow up blog: [Copying and Tagging Multi-Architecture Images](https://medium.com/@ozbillwang/multi-arch-image-copy-and-tag-a7d95c43e3b7)\n\n### usage #1\n\n```\n$ docker run --rm alpine/crane ls ubuntu\n10.04\n12.04.5\n12.04\n12.10\n```\n### usage #2\ncopy the image, for example, nginx,  with its multi-arch as well\n```\ndocker run -ti --rm -v $(pwd)/.docker:/root/.docker alpine/crane auth login -u \u003cyour_docker_id\u003e -p \u003cyour_docker_api\u003e index.docker.io\n\ndocker run -ti --rm -v $(pwd)/.docker:/root/.docker alpine/crane copy nginx \u003cyour_docker_id\u003e/nginx\n\n# for example\n\ndocker run -ti --rm -v $(pwd)/.docker:/root/.docker alpine/crane auth login -u ozbillwang -p dckr_pat_vynZPg8C5KsqItk-xxxxxxxxxx index.docker.io\n\n# check the auth config file\nmore .docker/config.json\n\n{\n        \"auths\": {\n                \"https://index.docker.io/v1/\": {\n                        \"auth\": \"b3piaWxsd2FuZzpkYxxxx\"\n                }\n        }\n}\n\ndocker run -ti --rm -v $(pwd)/.docker:/root/.docker alpine/crane copy nginx ozbillwang/nginx\n```\n\nAfter done, you should see the image in your account and the image has its all OS and Arch, all DIGEST are same\n\n![image](https://github.com/alpine-docker/crane/assets/8954908/886021e7-e723-4ccf-afe1-c77e874c5cc0)\n\n### usage #3\ncreate a tag for image, with its multi-arch as well\n```\ndocker run -ti --rm -v $(pwd)/.docker:/root/.docker alpine/crane tag  ozbillwang/nginx abc\n```\n![image](https://github.com/alpine-docker/crane/assets/8954908/8ea0046b-89c5-4488-b9d3-5ded4a751b98)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falpine-docker%2Fcrane","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falpine-docker%2Fcrane","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falpine-docker%2Fcrane/lists"}