Elastic Beanstalk Docker 映像无法拉取

Posted

技术标签:

【中文标题】Elastic Beanstalk Docker 映像无法拉取【英文标题】:Elastic Beanstalk Docker images failing to pull 【发布时间】:2017-09-22 17:44:50 【问题描述】:

我正在升级我们的一个 EB 环境并使用 python:3.6.1-alpine 作为新的 Docker 映像。问题是 Elastic Beanstalk 无法找到 3.6.1-alpine 的 docker 映像标签

Pulling repository docker.io/library/python
Tag 3.6.1-alpine not found in repository docker.io/library/python. Check snapshot logs for detail

但是,在本地拉取图像确实有效:

(env)lappy:project dave$ docker pull python:3.6.1-alpine
3.6.1-alpine: Pulling from library/python
709515475419: Already exists
7f8ede2d2484: Already exists
3f793c092168: Pull complete
a2a8b8745877: Pull complete
Digest: sha256:6ebe18fd00f5175b5f1fe45bfb131f22f5d997f4fe361546cf0a13de396b8009
Status: Downloaded newer image for python:3.6.1-alpine

我不太确定发生了什么,因为这是 Beanstalk 中的现有应用程序,已经上线将近一年。

【问题讨论】:

【参考方案1】:

我想出了解决问题的办法。我重建了我的 Elastic Beanstalk 环境,并且能够在实例上 sudo docker pull python:3.6-alpine。我不知道这个问题的原因或为什么它在重建时突然起作用,但这确实解决了这个问题。

【讨论】:

以上是关于Elastic Beanstalk Docker 映像无法拉取的主要内容,如果未能解决你的问题,请参考以下文章

AWS Elastic Beanstalk - 多容器 Docker

AWS Elastic Beanstalk Docker 环境变量

Elastic Beanstalk、Docker 和持续集成

Elastic Beanstalk 上的 WebSockets 与 Docker

Elastic Beanstalk Docker 映像无法拉取

Elastic Beanstalk 多容器 Docker 环境变量