简体   繁体   中英

Amazon ECR registry as Private registry

Cant I use Amazon ECR registry the same was as I am creating private registry ?

  1. Whitelist the private registry by adding to daemon.json file and restart docker service
  2. docker push <ecr/registry/ip>/<image_name>
  3. docker pull <ecr/registry/ip>/<image_name>

we need to use aws cli , but I dont want to use the same and handle it via private registry method. Any leads?

You will need to use aws cli ,

aws ecr get-login --registry-ids 012345678910 023456789012

This command will output one or more docker login commands for you that includes a user, a password and the specific registry urls for the registries that you requested, then you can eval the output or run the command(s) manually, after that you can use docker pull and docker push .

More info here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM