I have solved this issue within my docker-compose.yaml:
version: '3'
services:
mycontainer:
image: mycontainerregistry.azurecr.io/mycontainer1
container_name: mycontainer
deploy:
resources:
limits:
memory: 4g
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
How do I change CPU/Memory of a multi-container group using Docker Compose within Azure Container Instances?
I have solved this issue within my docker-compose.yaml:
version: '3'
services:
mycontainer:
image: mycontainerregistry.azurecr.io/mycontainer1
container_name: mycontainer
deploy:
resources:
limits:
memory: 4g
You can change the resources allocated to your multi-container group in your docker-compose.yaml file under the deployment request. You would want to configure the resource request property. This property must be less than or equal to the resource limit property that you can also set under the deploy
tag in the YAML file.