title: AWS ECS starting a container is very slow after 1 day
body: <p>I'm using ECS scheduled task to run my cron jobs.
  I have around 6 jobs running at various times. 3 of my jobs run every 2 minutes.
  Everything works fine for the first day when I launch a new instance in the ECS cluster. Then after a day, I see lots of tasks are in a pending state. I ssh into my ECS EC2 instance and try to start a container manually using <code>docker run</code> command, it takes 4-5 minutes for the container to start. I have checked logs 
  in /var/log/docker:
  I see this error</p>
  
  <p><code>time="2018-07-23T01:06:46.688248652Z" level=error msg="Handler for GET /v1.21/containers/2f68db90950da30547c326780df5c90afd85495fa54d8b2fba7e2044a8c23024/json returned error: write unix /var/run/docker.sock-&gt;@: write: broken pipe"
  2018-07-23 01:06:46.688296 I | http: multiple response.WriteHeader calls</code></p>
  
  <p>I'm not sure if this is the cause of the issue. I can't think of any way to resolve this issue.</p>
  
  <p>Please help.</p>
  
  <p>Thank you</p>