Sign inSign up

ozbillwang/nginx

By ozbillwang

Updated almost 3 years ago

Image
0

2.5K

ozbillwang/nginx repository overview

This is for my blog Copying and Tagging Multi-Architecture Images

crane

https://github.com/google/go-containerregistry/tree/main/cmd/crane

usage
$ docker run --rm alpine/crane ls ubuntu
10.04
12.04.5
12.04
12.10

copy the image, for example, nginx, with its multi-arch as well

docker run -ti --rm -v $(pwd)/.docker:/root/.docker alpine/crane auth login -u <your_docker_id> -p <your_docker_api> index.docker.io

docker run -ti --rm -v $(pwd)/.docker:/root/.docker alpine/crane copy nginx <your_docker_id>/nginx

# for example

docker run -ti --rm -v $(pwd)/.docker:/root/.docker alpine/crane auth login -u ozbillwang -p dckr_pat_vynZPg8C5KsqItk-xxxxxxxxxx index.docker.io
docker run -ti --rm -v $(pwd)/.docker:/root/.docker alpine/crane copy nginx ozbillwang/nginx

After done, you should see the image in your account and the image has its all OS and Arch

Tag summary

Content type

Image

Digest

sha256:10d1f5b58

Size

67.3 MB

Last updated

almost 3 years ago

docker pull ozbillwang/nginx