title: How do I configure "ulimits" for a Docker container running in AWS ECS?
body: <p>My Java application appears to be running out of "open files" limit when running in a Docker container in AWS ECS. Upon further investigation, I found that the open files limit defaults to 1024.</p>
  
  <p>Typically, in Linux I would edit <code>/etc/security/limits.conf</code>. That does not appear to take effect when I modify that file in my Docker container. </p>
  
  <p>I know I can also pass command line ulimit parameters to <code>docker run</code> as documented <a href="https://docs.docker.com/engine/reference/commandline/run/#set-ulimits-in-container-ulimit" rel="noreferrer">here</a>. But I do not have direct access to the Docker command line in ECS. There's gotta be a way to do it via a Task definition. How do I accomplish this ?</p>