- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我的 Dockerrun.aws.json
{
"AWSEBDockerrunVersion": 2,
"Authintication": {
"Bucket": "abc",
"key": "config.json"
},
"containerDefinitions": [
{
"name": "data",
"image": "id.dkr.ecr.eu-west-2.amazonaws.com/dbdata:latest",
"essential": false,
"memory": 512,
"command" : [
"/bin/bash"
]
},
{
"name": "codebase",
"image": "id.dkr.ecr.eu-west-2.amazonaws.com/codebase:latest",
"essential": false,
"memory": 512,
"command" : [
"/bin/bash"
]
},
{
"name": "postgres",
"image": "id.dkr.ecr.eu-west-2.amazonaws.com/postgres:latest",
"essential": true,
"memory": 1024,
"volumesFrom": [
{
"sourceContainer": "data"
}
],
"portMappings": [
{
"hostPort": 5432,
"containerPort": 5432
}
],
"links": [
"data"
]
},
{
"name": "boxer-api",
"image": "id.dkr.ecr.eu-west-2.amazonaws.com/boxer-api:latest",
"essential": true,
"memory": 1024,
"volumesFrom": [
{
"sourceContainer": "codebase"
}
],
"portMappings": [
{
"hostPort": 8080,
"containerPort": 8080
}
],
"links": [
"codebase",
"postgres",
"data"
]
}
]
}
[2017-04-05T08:29:00.728Z] INFO [3738] - [Application deployment First
Release@1/StartupStage1/AppDeployEnactHook/02update-credentials.sh] :
Starting activity... [2017-04-05T08:29:00.913Z] INFO [3738] -
[Application deployment First
Release@1/StartupStage1/AppDeployEnactHook/02update-credentials.sh] :
Completed activity. [2017-04-05T08:29:00.914Z] INFO [3738] - [Application deployment First Release@1/StartupStage1/AppDeployEnactHook/03start-task.sh] : Starting activity... [2017-04-05T08:30:37.520Z] INFO [3738] - [Application deployment First Release@1/StartupStage1/AppDeployEnactHook/03start-task.sh] : Activity execution failed, because: + . /opt/elasticbeanstalk/hooks/common.sh
+ RETRY=0 + initctl start eb-ecs EB_EVENT_FILE=/tmp/eventsfile20170405-3738-17c2sc0 initctl: Jobfailed to start + '[' -f /etc/elasticbeanstalk/.eb-ecs-start-no-retry ']' + warn 'Failed to start ECS task, retrying...' + echo 'Failed to start ECS task, retrying...' Failed to start ECS task, retrying... + eventHelper.py --msg 'Failed to start ECS task, retrying...' --severity WARN + RETRY=1 + sleep 3 + '[' 1 -gt 1 ']' + initctl start eb-ecs
EB_EVENT_FILE=/tmp/eventsfile20170405-3738-17c2sc0 initctl: Job failed to start + '[' -f /etc/elasticbeanstalk/.eb-ecs-start-no-retry ']' + warn 'Failed to start ECS task, retrying...' + echo 'Failed to start ECS task, retrying...' Failed to start ECS task, retrying... + eventHelper.py --msg 'Failed to start ECS task, retrying...' --severity WARN + RETRY=2 + sleep 3 + '[' 2 -gt 1 ']' + error_exit 'Failed to start ECS task after retrying 2 times.' 1 + error 'Failed to start ECS task after retrying 2 times.' + echo 'Failed to start ECS task after retrying 2 times.' Failed to start
ECS task after retrying 2 times. + eventHelper.py --msg 'Failed to start ECS task after retrying 2 times.' --severity ERROR + exit 1 (ElasticBeanstalk::ExternalInvocationError) caused by: + . /opt/elasticbeanstalk/hooks/common.sh + RETRY=0 + initctl start eb-ecs EB_EVENT_FILE=/tmp/eventsfile20170405-3738-17c2sc0 initctl: Job failed to start + '[' -f /etc/elasticbeanstalk/.eb-ecs-start-no-retry ']' + warn 'Failed to start ECS task, retrying...' + echo 'Failed to start ECS task, retrying...' Failed to start ECS task, retrying... + eventHelper.py --msg 'Failed to start ECS task, retrying...' --severity WARN + RETRY=1 + sleep 3 + '[' 1 -gt 1 ']' + initctl start eb-ecs
EB_EVENT_FILE=/tmp/eventsfile20170405-3738-17c2sc0 initctl: Job failed to start + '[' -f /etc/elasticbeanstalk/.eb-ecs-start-no-retry ']' + warn 'Failed to start ECS task, retrying...' + echo 'Failed to start ECS task, retrying...' Failed to start ECS task, retrying... + eventHelper.py --msg 'Failed to start ECS task, retrying...' --severity WARN + RETRY=2 + sleep 3 + '[' 2 -gt 1 ']' + error_exit 'Failed to start ECS task after retrying 2 times.' 1 + error 'Failed to start ECS task after retrying 2 times.' + echo 'Failed to start ECS task after retrying 2 times.' Failed to start
ECS task after retrying 2 times. + eventHelper.py --msg 'Failed to start ECS task after retrying 2 times.' --severity ERROR + exit 1 (Executor::NonZeroExitStatus)
2017-04-05T09:13:11Z [INFO] Saving state! module="statemanager"
2017-04-05T09:13:11Z [INFO] Finished pulling container postgres(id.dkr.ecr.eu-west-2.amazonaws.com/postgres:latest) (PULLED->RUNNING). Lock acquisition and pull took 233ns.
2017-04-05T09:13:11Z [CRITICAL] Task in a bad state; it's not steadystate but no containers want to transition module="TaskEngine" task="awseb-ebsBoxer-env-y9jmnnjnnm:3 arn:aws:ecs:eu-west-2:443611395156:task/f510bd3f-5b97-4fbe-af6c-61e037b08a29, Status: (NONE->RUNNING) Containers: [codebase (STOPPED->RUNNING),postgres (PULLED->RUNNING),data (STOPPED->RUNNING),]"
2017-04-05T09:13:11Z [CRITICAL] Moving task to stopped due to bad state module="TaskEngine" task="awseb-ebsBoxer-env-y9jmnnjnnm:3 arn:aws:ecs:eu-west-2:443611395156:task/f510bd3f-5b97-4fbe-af6c-61e037b08a29, Status: (NONE->RUNNING) Containers: [codebase (STOPPED->RUNNING),postgres (PULLEDRUNNING),data(STOPPED->RUNNING),]" 2017-04-05T09:13:11Z [INFO] Task change event module="TaskEngine"event="{TaskArn:arn:aws:ecs:eu-west-2:443611395156:task/f510bd3f-5b97-4fbe-af6c-61e037b08a29 Status:STOPPED Reason: Task:awseb-ebsBoxer-env-y9jmnnjnnm:3 arn:aws:ecs:eu-west-2:443611395156:task/f510bd3f-5b97-4fbe-af6c-61e037b08a29, Status: (STOPPEDSTOPPED) Containers: [codebase(STOPPED->STOPPED),postgres (STOPPED STOPPED),data (STOPPED->STOPPED),]}"
最佳答案
折腾了两天终于找到了。
这是因为我的数据和代码库容器以退出代码“0”退出。我将命令更改为“tail -f/bin/bash/”。
前:
{
"name": "data",
"image": "id.dkr.ecr.eu-west-2.amazonaws.com/dbdata:latest",
"essential": false,
"memory": 512,
"command" : [
"/bin/bash"
]
},
{
"name": "codebase",
"image": "id.dkr.ecr.eu-west-2.amazonaws.com/codebase:latest",
"essential": false,
"memory": 512,
"command" : [
"/bin/bash"
]
}
{
"name": "data",
"image": "id.dkr.ecr.eu-west-2.amazonaws.com/dbdata:latest",
"essential": false,
"memory": 512,
"command": [
"tail",
"-f",
"/bin/bash"
]
},
{
"name": "codebase",
"image": "id.dkr.ecr.eu-west-2.amazonaws.com/codebase:latest",
"essential": false,
"memory": 512,
"command": [
"tail",
"-f",
"/bin/bash"
]
}
关于docker - 无法启动 Elastic Beanstalk MultiContainer 实例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43226124/
我有两个处理不同但相关功能的应用程序。我想将它们作为单个实体部署在单个host:port上。 我的计划是使用elasticbeanstalk的多容器Docker平台。每个应用程序都是一个容器。 如何将
我在Multicontainer Docker环境中有一个 flex beantalk实例,该实例在不同容器上部署了很少的应用程序。 当前,如果我要更新任何一个容器,我必须将所有容器(包括旧容器)的代
我的 Dockerrun.aws.json { "AWSEBDockerrunVersion": 2, "Authintication": { "Bucket": "abc",
我想在弹性 beanstalk 中部署一个多容器应用程序。我收到以下错误。 Error 1: The EC2 instances failed to communicate with AWS Elas
我尝试将 fluentd 日志驱动程序与以下 Dockerrun.aws.json 一起使用, { "AWSEBDockerrunVersion": 2, "contain
我是一名优秀的程序员,十分优秀!