Error: Invalid task definition: Could not find container definition with matching name

3.1k Views Asked by At

I'm getting below error, how can I resolve this issue

Error: Invalid task definition: Could not find container definition with matching name

below I have added in my task definition

 "containerDefinitions": [
    {
      "dnsSearchDomains": null,
      "environmentFiles": null,
      "logConfiguration": null,
      "entryPoint": null,
      "portMappings": [
        {
          "hostPort": 80,
          "protocol": "tcp",
          "containerPort": 8000
        }
      ],
      "command": null,
      "linuxParameters": null,
      "cpu": 0,
      "environment": [],
      "resourceRequirements": null,
      "ulimits": null,
      "dnsServers": null,
      "mountPoints": [],
      "workingDirectory": null,
      "secrets": null,
      "dockerSecurityOptions": null,
      "memory": null,
      "memoryReservation": 500,
      "volumesFrom": [],
      "stopTimeout": null,
      "image": "dkr.ecr.ap-south-1.amazonaws.com/app-server-repo:c63619a84827c463f7d3c5a78da6280f9ea3efec",
      "startTimeout": null,
      "firelensConfiguration": null,
      "dependsOn": null,
      "disableNetworking": null,
      "interactive": null,
      "healthCheck": null,
      "essential": true,
      "links": null,
      "hostname": null,
      "extraHosts": null,
      "pseudoTerminal": null,
      "user": null,
      "readonlyRootFilesystem": null,
      "dockerLabels": null,
      "systemControls": null,
      "privileged": null,
      "name": "app-server-con"
    }
  ],
0

There are 0 best solutions below