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
preguntada hace 4 años198 visualizaciones
1 Respuesta
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
respondido hace 4 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas