gpt4 book ai didi

docker - elasticbeanstalk部署失败,并出现守护程序的错误响应:

转载 作者:行者123 更新时间:2023-12-02 20:35:42 27 4
gpt4 key购买 nike

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 running on 64bit Amazon Linux 2/3.0.0切换到Docker running on 64bit Amazon Linux/2.14.3解决了该问题-Docker镜像按预期构建。

关于docker - elasticbeanstalk部署失败,并出现守护程序的错误响应:,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61437231/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com