Elastic Beanstalk - 管道部署失败 - 它试图删除依赖的子图像

问题描述 投票:0回答:0

我目前正在建立一个新项目。 我创建了一个可以毫无问题地运行构建的管道。

问题出现在Deploy。我从

/var/log/eb-engine.log
得到以下错误。导致错误的命令由 Deploy 执行。我不是故意运行它的:

[INFO] Running command /bin/sh -c docker rmi `docker images -aq`

Error response from daemon: conflict: unable to delete 123456789 (cannot be forced) - image has dependent child images
Error response from daemon: conflict: unable to delete 234567891 (cannot be forced) - image is being used by running container 3456789dbd
Error response from daemon: conflict: unable to delete 456789123 (cannot be forced) - image has dependent child images
Error response from daemon: conflict: unable to delete 567891234 (cannot be forced) - image has dependent child images

[INFO] Running command /bin/sh -c docker images -a
[INFO] REPOSITORY                             TAG       IMAGE ID       CREATED       SIZE
aws_beanstalk/current-app              latest    234567891    2 hours ago   906MB
<none>                                 <none>    123456789    2 hours ago   906MB
<none>                                 <none>    456789123    2 hours ago   906MB
public.ecr.aws/docker/library/python   3.8       567891234    2 weeks ago   906MB

这是我的

Dockerrun.aws.json

{
  "AWSEBDockerrunVersion": "1",
  "containerDefinitions": [
    {
      "name": "myproject",
      "image": "{$AWSID}.dkr.ecr.{$AWSREGION}.amazonaws.com/myproject",
      "hostname": "myproject",
      "portMappings": [
        {
          "hostPort": 80,
          "containerPort": 3000
        }
      ],
      "memory": 2024
    }
  ]
}

和我的

docker-compose.yml

version: "3.7"

services:
  myproject:
    container_name: myproject
    ports:
      - "80:3000"
    build:
      context: ./
      dockerfile: somefolder/Dockerfile    

    volumes:
      - ./:/var/www/somefolder/fetcher

我多次尝试创建新环境,更改容器名称,从文件中删除提到的图像

buildspec.yml
,但实际上,如果我运行
docker ps -a
,我没有运行容器。

我想知道是否与另一个正在运行的 Elastic Beanstalk 实例有任何关系,或者我是否有一些配置问题。

知道会发生什么或有人有类似的问题吗?

amazon-web-services docker docker-compose amazon-elastic-beanstalk dockerrun.aws.json
© www.soinside.com 2019 - 2024. All rights reserved.