How to configure the memory assigned to Docker service?

How to configure the memory assigned to Docker service ? when I run

service start docker

I want to assigned the memory for the docker engine how to do that ?