Score:0

Is amazon/amazon-ecs-pause needed by the ECS host

gr flag

I have an EC2 that is registered to ECS cluster.

Initially it had these two images.

amazon/amazon-ecs-agent                                       latest                                     08803626e5a0        4 weeks ago         62.8MB
amazon/amazon-ecs-pause                                       0.1.0                                      957b10a2f73d        4 weeks ago         954kB

I put a cron which prunes unused images with

docker image prune -af --filter "until=$((1*24))h"

and it ended up deleting the amazon/amazon-ecs-pause image since there was no container associated with it. But I see the host is fine. If I update the ECS service to start new containers or scale down containers it is able to do so. Is the amazon/amazon-ecs-pause needed? If yes, will the host automatically download it whenever the need arises?

Or should I download it and edit my cron to exclude deleting amazon/amazon-ecs-pause?

Will it suffice to simply download it with docker pull amazon/amazon-ecs-pause:0.1.0?

Rohini avatar
gr flag
okay, another thing I noticed is the ECS service may start a task from an image in ECR. That image will show up as downloaded on the ECS host. Even if the prune task removes image from the docker host, it doesn't impact task in any way. Task continues to run. So that might indicate there really no issues if ecs-pause image is deleted. Host should be able to auto download it whenever it is needed
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.