amazon-ecs-agent icon indicating copy to clipboard operation
amazon-ecs-agent copied to clipboard

since 1.83.0 containers use image digest instead of image tag

Open gilad-yadgar opened this issue 1 year ago • 4 comments

Summary

since our EC2 upgraded to ecs-agent v1.83.0, images used for containers are with sha digest and not image tag

Description

we started getting different image value for the '{{.Config.Image}}' property using docker inspect in our ECS EC2. we are getting sha digest as the .Config.Image instead of getting the image tag. the task definition contains the correct image tag (and not the digest)

we need the image tag since we rely on that custom tag to understand what was deployed. what can be done?

Expected Behavior

we expect to see the image tag used for the container

Observed Behavior

we get image digest used for the container

Environment Details

  • curl http://localhost:51678/v1/metadata {"Cluster":"xxxxr","ContainerInstanceArn":"xxx","Version":"Amazon ECS Agent - v1.83.0 (*xxx"}

gilad-yadgar avatar Jul 02 '24 04:07 gilad-yadgar