Limit resources in docker-compose v3

后端 未结 3 1100
[愿得一人]
[愿得一人] 2020-12-29 04:29

mem_limit is no longer supported in version 3 of docker-compose.yml file. The documentation tells that I should use the deploy.resources key instead but also th

3条回答
  •  暖寄归人
    2020-12-29 04:47

    you can try docker-compose --compatibility up which is CLI flag that convert v3 files to their v2 equivalent, with deploy options translated when possible.

提交回复
热议问题