title: Docker running out of memory when loading large sql dump
body: <p>I am trying to load a large sql dump to a docker postgres container and it is running out of memory.</p>
  
  <p>I have set log driver to none and still running out of memory</p>
  
  <p>the file is 3gb large</p>
  
  <pre><code>docker run -it --volume=/backend/dumps:/dumps --log-driver=none --link=postgis:postgres --rm postgres sh -c 'exec cat /dumps/databases/PostgreSQL.sql | psql -h "$POSTGRES_PORT_5432_TCP_ADDR" -p "$POSTGRES_PORT_5432_TCP_PORT" -U postgress -d backend_service_development'
  </code></pre>