Window docker 推送镜像到 ECR 深碍√TFBOYSˉ_ 2023-08-17 16:04 68阅读 0赞 # **Window docker 推送镜像到ECR** # 1.下载. docker window 版本 [http][] ://mirrors.aliyun.com/docker-toolbox/windows/docker-toolbox/ 2 docker pull 镜像 [https://docs.aws.amazon.com/zh\_cn/AmazonECR/latest/userguide/docker-push-ecr-image.html][https_docs.aws.amazon.com_zh_cn_AmazonECR_latest_userguide_docker-push-ecr-image.html] 3. 标志镜像 https://docs.aws.amazon.com/zh\_cn/AmazonECR/latest/userguide/Registries.html\#registry\_auth 4.推送 * 先获取 aws cli (window :[https://docs.aws.amazon.com/zh\_cn/cli/latest/userguide/install-windows.html][https_docs.aws.amazon.com_zh_cn_cli_latest_userguide_install-windows.html]) * 执行 aws configure * 输入密钥信息 * ![20190927211309660.png][] * 执行 aws ecr get-login --region ap-southeast > text.txt * 从txt中获取以下docker命令,在docker中进行登录 ![watermark_type_ZmFuZ3poZW5naGVpdGk_shadow_10_text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzI4OTI5NTg5_size_16_color_FFFFFF_t_70][] docker login -u 123 -p 123 2sssssssssss.dkr.ecr.ap-southeast-1.amazonaws.com ![watermark_type_ZmFuZ3poZW5naGVpdGk_shadow_10_text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzI4OTI5NTg5_size_16_color_FFFFFF_t_70 1][] [http]: http://mirrors.aliyun.com/docker-toolbox/windows/docker-toolbox/ [https_docs.aws.amazon.com_zh_cn_AmazonECR_latest_userguide_docker-push-ecr-image.html]: https://docs.aws.amazon.com/zh_cn/AmazonECR/latest/userguide/docker-push-ecr-image.html [https_docs.aws.amazon.com_zh_cn_cli_latest_userguide_install-windows.html]: https://docs.aws.amazon.com/zh_cn/cli/latest/userguide/install-windows.html [20190927211309660.png]: /images/20230810/7ab51682cdf8445294ce89a970532ccc.png [watermark_type_ZmFuZ3poZW5naGVpdGk_shadow_10_text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzI4OTI5NTg5_size_16_color_FFFFFF_t_70]: /images/20230810/eafe7a5a44ac48f5a85073efdb664ff8.png [watermark_type_ZmFuZ3poZW5naGVpdGk_shadow_10_text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzI4OTI5NTg5_size_16_color_FFFFFF_t_70 1]: /images/20230810/27f5852f4e3f4c5eb26a319f77c08ec4.png
还没有评论,来说两句吧...