Can I use mem_limit in docker-compose? and How?

前端 未结 3 1255
醉话见心
醉话见心 2020-12-25 09:31

mem_limit is supported by docker-compose? How can I test it?

I have a following docker-compose.yml



        
3条回答
  •  没有蜡笔的小新
    2020-12-25 10:14

    According to documentation, simple

    mem_limit: 1000000000
    

    should be enough. I guess, you should drop "m", and use bytes instead of megabytes.

提交回复
热议问题