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
Feb 4 09:45:28 ecs-10-0-4-182.dev.domain.com ecs-agent ERROR Error removing Image docker.domain.com/myapp:1.1 - Error: No such image: docker.domain.com/myapp:1.1
Description
This happens for different image tagss with old versions which are outdated and doesn't exist on instance. For example current version of image tag is 1.5, but ECS agent still tries to delete 1.1 and fails, because it doesn't exist.
From all it seems that it doesn't affect anything, just weird errors in logs.
Expected Behavior
Do not try to delete image tag, which already doesn't exist.
Observed Behavior
Trying to delete image tag which doesn't exist. Just for testing purpose I have tagged generic nginx image with tag of my app, tag was deleted and errors gone for that image, however later they appear again for other tags.
@sabretus ECS Agent will keep a record of all the images used by the tasks and removes them periodically. if image docker.domain.com/myapp:1.1 was pulled by agent, it will try to clean it up. Was this image removed manually from the instance or do you have other cleanup scripts running?
Yes we have other cleanup scripts that can run but those scripts haven't changed in years. In version 17.3 and before it would throw one error and that was it. Now in newer versions it throws an error every 30 minutes and never gives up trying to remove and image that will never exist again.
Summary
ECS agent throws following errors in logs:
Description
This happens for different image tagss with old versions which are outdated and doesn't exist on instance. For example current version of image tag is 1.5, but ECS agent still tries to delete 1.1 and fails, because it doesn't exist.
From all it seems that it doesn't affect anything, just weird errors in logs.
Expected Behavior
Do not try to delete image tag, which already doesn't exist.
Observed Behavior
Trying to delete image tag which doesn't exist. Just for testing purpose I have tagged generic nginx image with tag of my app, tag was deleted and errors gone for that image, however later they appear again for other tags.
Environment Details
The text was updated successfully, but these errors were encountered: