Can I use mem_limit in docker-compose? and How?
问题 mem_limit is supported by docker-compose? How can I test it? I have a following docker-compose.yml repository: image: myregistry/my_nginx_image mem_limit: 60m volumes: - /etc/localtime:/etc/localtime ports: - "80:80" How can I prove that the container actually does not exceed 60 mb of RAM? I am using: docker 1.3.1 docker-compose 1.1.0 回答1: Yes. Memory limitation is supported by docker-compose and value can be set as in your example with "m" for megabytes. It is possible to check what is the