I have been trying to run sonarcloud on a repository using Bitbucket PHP pipeline and it returns "Container 'docker' exceeded memory limit.".
Hello all,
The error message "Container 'docker' exceeded memory limit" indicates that the memory allocated to the docker service in your pipeline is insufficient, and the docker command(s) being executed requires more memory.
By default, the docker service is allocated 1024 MB of memory. This can be changed by following the instructions outlined in the article below :
Thank you!
Patrik S
Welcome to the community.
The error message you've shared indicates that the memory allocated to the docker service container is insufficient.
However, I can't see any docker services in your YAML config, so I wonder if you have any other services in the YAML.
Nevertheless, the default memory limit for the Docker service container is 1024 MB. So the error means your services are using more than the allocated memory.
You can increase the memory allocated to the Docker service container as below.
definitions: services: docker: memory: 2048
I hope this helps.
Cheers,
Syahrul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello all,
The error message "Container 'docker' exceeded memory limit" indicates that the memory allocated to the docker service in your pipeline is insufficient, and the docker command(s) being executed requires more memory.
By default, the docker service is allocated 1024 MB of memory. This can be changed by following the instructions outlined in the article below :
Thank you!
Patrik S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.