elasticbeanstalk部署失败,并且来自守护程序的错误响应:

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

AWS Elastic Beanstalk失败,并出现守护程序的错误响应:

您无法卸下正在运行的容器c911e29b2ce2283bae300645bf2f034f7bf51c07b7ec72c6ebfa133d531a6129。

尝试移除或强行移除之前,请先停止容器

以下错误日志:

2020/04/26 07:15:31.279931 [INFO] Running command /bin/sh -c docker rmi `docker images -aq`
2020/04/26 07:15:31.369738 [ERROR] Error response from daemon: conflict: unable to delete 274bac0a2621 (cannot be forced) - image has dependent child images
Error response from daemon: conflict: unable to delete 6040329cd021 (cannot be forced) - image has dependent child images
Error response from daemon: conflict: unable to delete 1020a81a3f38 (cannot be forced) - image is being used by running container c911e29b2ce2
Error response from daemon: conflict: unable to delete 68e7be49c28c (cannot be forced) - image has dependent child images

2020/04/26 07:15:31.369787 [INFO] restore docker image name with command: docker tag 1020a81a3f38 aws_beanstalk/current-app:latest
2020/04/26 07:15:31.369804 [INFO] Running command /bin/sh -c docker tag 1020a81a3f38 aws_beanstalk/current-app:latest
2020/04/26 07:15:31.414707 [INFO] restore docker image name with command: docker tag 68e7be49c28c python:2.7
2020/04/26 07:15:31.414786 [INFO] Running command /bin/sh -c docker tag 68e7be49c28c python:2.7
2020/04/26 07:15:31.462282 [INFO] Running command /bin/sh -c /bin/file -m /opt/elasticbeanstalk/config/private/beanstalk-magic -b --mime-type /opt/elasticbeanstalk/deployment/app_source_bundle
2020/04/26 07:15:31.464666 [INFO] application/zip

2020/04/26 07:15:31.464679 [INFO] app source bundle is zip file ...
2020/04/26 07:15:31.464689 [INFO] extracting /opt/elasticbeanstalk/deployment/app_source_bundle to /var/app/current/
2020/04/26 07:15:31.464703 [INFO] Running command /bin/sh -c /usr/bin/unzip -q -o /opt/elasticbeanstalk/deployment/app_source_bundle -d /var/app/current/
2020/04/26 07:15:31.475355 [INFO] finished extracting /opt/elasticbeanstalk/deployment/app_source_bundle to /var/app/current/ successfully
2020/04/26 07:15:31.475367 [INFO] Executing instruction: RunPreBuildHooks
2020/04/26 07:15:31.475381 [INFO] The dir .platform/hooks/prebuild/ does not exist in the application. Skipping this step...
2020/04/26 07:15:31.475385 [INFO] Executing instruction: Docker Specific Build Application
2020/04/26 07:15:31.475404 [INFO] start build docker app
2020/04/26 07:15:31.475414 [INFO] fetch image name
2020/04/26 07:15:31.475437 [INFO] authenticate with ECR if the image is in an ECR repo
2020/04/26 07:15:31.475442 [INFO] pull docker image if update is not false in dockerrun.aws.json
2020/04/26 07:15:31.475455 [INFO] Running command /bin/sh -c docker pull node:alpine as builder
2020/04/26 07:15:31.516536 [ERROR] "docker pull" requires exactly 1 argument.
See 'docker pull --help'.

Usage:  docker pull [OPTIONS] NAME[:TAG|@DIGEST]

Pull an image or a repository from a registry

2020/04/26 07:15:31.516557 [WARN] failed to execute command: docker pull node:alpine as builder, retrying...
2020/04/26 07:15:31.516577 [INFO] Running command /bin/sh -c docker pull node:alpine as builder
2020/04/26 07:15:31.557381 [ERROR] "docker pull" requires exactly 1 argument.
See 'docker pull --help'.

Usage:  docker pull [OPTIONS] NAME[:TAG|@DIGEST]

Pull an image or a repository from a registry

2020/04/26 07:15:31.557405 [ERROR] An error occurred during execution of command [app-deploy] - [Docker Specific Build Application]. Stop running the command. Error: failed to pull docker image: Command /bin/sh -c docker pull node:alpine as builder failed with error exit status 1. Stderr:"docker pull" requires exactly 1 argument.
See 'docker pull --help'.
docker amazon-elastic-beanstalk
1个回答
0
投票

我们在以下平台上遇到了这样的问题:Docker running on 64bit Amazon Linux 2/3.0.0切换到Docker running on 64bit Amazon Linux/2.14.3解决了该问题-Docker镜像按预期构建。

© www.soinside.com 2019 - 2024. All rights reserved.