简体   繁体   中英

Amazon AWS ECS Container Docker Port not binding correctly

I have deployed a docker Image via ECS Task Definitions picked up from ECR. The Task definition json is given below.

1个

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

2个

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

With awsvpc the Security Group >> Inbound rules are important. You need to make sure that the Container port mapping is actually allowed in the Security Group >> Inbound rules of your ECS Service

在此处输入图像描述

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM