AWS ECS agent won't start

When I try to run the ECS agent, I get the following error in the ecs-init.log*:

[INFO] Agent exited with code 5
[ERROR] agent exited with terminal exit code

And in the ecs-agent.log* file I get this:

  • Amazon ECS private DockerHub repo: Unable to decode provided docker credentials error
  • Configure ECS to use Reserved Instances
  • Error Docker deployment in Amazon Elastic Beanstalk - Docker container quit unexpectedly
  • How to map subdomains to multiple docker containers (as web servers) hosted using Elastic Bean Stack on AWS
  • Sorl4 failing to index when using EBS volume in ECS
  • Docker container keeps growing
  • [CRITICAL] Data mismatch; saved cluster 'cluster1' does not match configured cluster 'cluster2'. Perhaps you want to delete the configured checkpoint file?
    

    Any idea where is that checkpoint file?

  • Strange errors when running npm install on alpine linux
  • Docker remove <none> TAG images
  • Why is Dockerized Hadoop datanode registering with the wrong IP address?
  • Docker - connecting to DB with sequel pro
  • How to create a public key store for microservices?
  • Using Marathon json to create new implementations
  • One Solution collect form web for “AWS ECS agent won't start”

    I found the answer myself. The checkpoint file is located in this directory: /var/lib/ecs/data/ecs_agent_data.json.
    Just delete that json file and start the ECS agent again running start ecs.
    Thanks to this forum post, which indirectly led me to the answer: https://forums.aws.amazon.com/thread.jspa?messageID=625643

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.