AWS - ECS run a task show this error Reasons : ["RESOURCE:PORTS"]

It looks like the scheduler cannot assign your task to an instance because it requires a fixed port that is already taken. The simplest solution is to choose another port number in the specification of your task.

You could also allow the scheduler to allocate the port dynamically, but in this case you would probably want to define a service attached to a load balancer in order to expose it to the outside world.