title: Check mem_limit within a docker container
body: <p>After some crashes with a docker container with a too low mem_limit, how can i check <strong>in</strong> a container the mem_limit of this container? I want to print an error message on startup and exit if the mem_limit is set to low.</p>