我已经设置了一个运行两个Docker容器的EB实例,这些容器从ECS注册表中检索并具有正确的推/拉设置。
因此,如果我通过codebuild构建一个新的docker镜像并将其推送到我们的注册表,那么EB(使用多Docker容器设置)如何引入新图像?我已将Dockerun文件设置为指向latest
容器!这是我的Dockerrun.aws.json文件:
{
"AWSEBDockerrunVersion": 2,
"volumes": [
{
"name": "rest-api",
"host": {
"sourcePath": "/var/app/current/rest-api"
}
},
{
"name": "thumbd",
"host": {
"sourcePath": "/var/app/current/thumbd"
}
}
],
"containerDefinitions": [
{
"name": "rest-api",
"image": "<ECS_REGISTRY_URL>",
"essential": true,
"memory": 128,
"mountPoints": [
{
"sourceVolume": "rest-api",
"containerPath": "/var/www/html",
"readOnly": true
}
]
},
{
"name": "thumbd",
"image": "<ECS_REGISTRY_URL>",
"essential": true,
"memory": 128,
"mountPoints": [
{
"sourceVolume": "thumbd",
"containerPath": "/var/www/html",
"readOnly": true
}
]
}
]
}
问题:
:latest
容器?