Adds support for using dockers memory limiter.

The default is nil, and will default to dockers own defaults. It
must be set in bytes.