简体   繁体   English

将Amazon ECR注册表作为私有注册表

[英]Amazon ECR registry as Private registry

Cant I use Amazon ECR registry the same was as I am creating private registry ? 不能使用Amazon ECR注册表与创建private registry吗?

  1. Whitelist the private registry by adding to daemon.json file and restart docker service 通过添加到daemon.json文件将私有注册表列入白名单并重新启动docker服务
  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. 我们需要使用aws cli ,但是我不想使用它并通过私有注册表方法来处理它。 Any leads? 任何线索?

You will need to use aws cli , 您将需要使用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 . 该命令将为您输出一个或多个docker login命令,包括用户,密码和您请求的注册表的特定注册表URL,然后您可以eval输出或手动运行命令,之后即可使用docker pulldocker push

More info here 更多信息在这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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