eb local run does not pick latest image

0

I have a setup of multi containers with Dockerrun.aws.json setup to pick the images from ECR
"image": "xxxxxxx.dkr.ecr.eu-west-1.amazonaws.com/yyyyyyyyyy:latest",

I have done some modifications to the containers and wish to test it locally
But no matter what i do it seems that the images used are old
I even tried to build and push with new tag and switched the conf to use it
But still i get the same behavior

The .elasticbeanstalk/docker-compose.yml file seems to get updated , but even running docker-compose up --build with it still uses the older image

I even tried running docker system prune -a to make eb pull the new tagged container - but still , somehow, i got the old images again

when i run the docker-compose with my own docker-compose.yml - it uses the newly created image
When i run the docker ps -a , i can see that the containers used are only different by their name (my yml has container_name in it , and yes removing the name and build and push again did nothing)

What have i missed or did not fully understand ?
is there any way to make eb local rebuild and use the latest images locally?

TalAbra
已提問 4 年前檢視次數 198 次
1 個回答
0

0

After few days with AWS Support on the phone Finally we got an answer So if anyone face this in the future , you need to check your mount setup

Make the volume pick from /var/app/current/API

"volumes": [
{
"host": {
"sourcePath": "/var/app/current/API"
},
"name": "_Api"
}
],

TalAbra
已回答 4 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南