You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If ECS_ENABLED_UNTRACKED_IMAGE_CLEANUP is set to true, the ecs-agent will remove the ecs-service-connect-agent:interface-v1 image and tasks enabled for Service Connect will fail to start.
Description
If ECS_ENABLED_UNTRACKED_IMAGE_CLEANUP is set to true, the ecs-agent will remove the ecs-service-connect-agent:interface-v1 image and tasks enabled for Service Connect will fail to start.
Adding ECS_EXCLUDE_UNTRACKED_IMAGE=ecs-service-connect-agent:interface-v1 to ecs.config is a work-around for the issue.
I'm not familar with the ecs-agent codebase, but I'm guessing it just needs to be added to
ecs-agent deleted ecs-service-connect-agent:interface-v1 then failed to start a Service Connect Task with error CannotCreateContainerError: Error response from daemon: No such image: ecs-service-connect-agent:interface-v1.
Environment Details
Using ami-028cbf4835af1ad6f (amzn2-ami-ecs-hvm-2.0.20221207-x86_64-ebs)
Supporting Log Snippets
The text was updated successfully, but these errors were encountered:
Summary
If
ECS_ENABLED_UNTRACKED_IMAGE_CLEANUP
is set totrue
, the ecs-agent will remove theecs-service-connect-agent:interface-v1
image and tasks enabled for Service Connect will fail to start.Description
If
ECS_ENABLED_UNTRACKED_IMAGE_CLEANUP
is set totrue
, the ecs-agent will remove theecs-service-connect-agent:interface-v1
image and tasks enabled for Service Connect will fail to start.Adding
ECS_EXCLUDE_UNTRACKED_IMAGE=ecs-service-connect-agent:interface-v1
toecs.config
is a work-around for the issue.I'm not familar with the ecs-agent codebase, but I'm guessing it just needs to be added to
amazon-ecs-agent/agent/engine/docker_image_manager.go
Lines 102 to 106 in 41e8e6a
Expected Behavior
Don't delete
ecs-service-connect-agent:interface-v1
Observed Behavior
ecs-agent deleted
ecs-service-connect-agent:interface-v1
then failed to start a Service Connect Task with errorCannotCreateContainerError: Error response from daemon: No such image: ecs-service-connect-agent:interface-v1
.Environment Details
Using
ami-028cbf4835af1ad6f (amzn2-ami-ecs-hvm-2.0.20221207-x86_64-ebs)
Supporting Log Snippets
The text was updated successfully, but these errors were encountered: