How do I limit memory in a container for CoreOS?

January 18, 2015 1.5k views

I use CoreOS on DO, and I want to limit a container's memory to 50mb.

Is there any techinques I could use to achieve that?


1 Answer

The docker-run command allows you to specify maximum memory or maximum of memory+swap.

See the --memory and --memory-swap options.

Have another answer? Share your knowledge.