Command Details

$ docker run -it --cpu-shares=512 --memory=512m image_name

Run a container with specified CPU and memory constraints.