Cant I use Amazon ECR
registry the same was as I am creating private registry
?
docker push <ecr/registry/ip>/<image_name>
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.