Ab6dec2dc8567276ed7202dfec57b460d4e9f289
By:
shymega

How do I limit memory in a container for CoreOS?

January 18, 2015 521 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?

Thanks.

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.