I have deployed a docker Image via ECS Task Definitions picked up from ECR. The Task definition json is given below.
I have mapped container port as 80 & Network Mode: awsvpc
But when the ECS service is started and docker runs in an EC2 instance but the ports are not mapped. I verified the same by logging into the EC2 instance and triggering
docker ps
I am using Load Balancer as of now. Wanted to first get the containers working and accessible via 80 port.
Kindly help me figure out what is wrong in the given config
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.