none
docker-compose: Setting memory/cpu resources with Hyper-V and Windows containers RRS feed

  • Question

  • Hello,

    We are trying to build a multi-Windows-container application with "docker-compose", and it seems that the containers are not using all available resources. Windows 10 is forcing us to use Hyper-V containers.

    How do we set limits for the memory or cpu usage? There are switches for the "docker run" command, but I am unable to find any relevant information about "docker-compose".

    Thanks.

    Tuesday, August 28, 2018 12:13 PM

All replies

  • For swarm based https://docs.docker.com/compose/compose-file/#resources

    For stand alone https://docs.docker.com/compose/compose-file/compose-file-v2/#cpu-and-other-resources

    Tuesday, August 28, 2018 1:46 PM