I'm very new to Amazon ECS, and I've written a task definition with 3 containers. One for my php application (main-server), second for node application (pubsub-server) and a redis container.
main-server
and pubsub-server
link to redis
container. (Is this the best way to arrange the containers?)
The cluster runs well. However, I have an update to make in my main-server
. I am able to push the updated image to Amazon ECR but my changes don't reflect on the cluster. Is there any additional step to perform to run the updated container on push?
I have tried deregistering the tasks and activating them back. But it doesn't seem to work.
Please let me know if I need to provide anymore details.
You need to force a new deployment.
From the AWS console, update the service definition and check the force new deployment checkbox on the first page, then skip to confirmation page.
From CLI:
aws ecs update-service --cluster [cluster arn] --service [service arn] --force-new-deployment
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.