# Container 'docker' exceeded memory limit on bitbucket pipeline

**URL:** <https://community.sonarsource.com/t/container-docker-exceeded-memory-limit-on-bitbucket-pipeline/79380>\
**Category:** SonarQube Cloud\
**Tags:** sonarqube-cloud\
**Created:** [December 26, 2022, 10:12am UTC](https://community.sonarsource.com/t/container-docker-exceeded-memory-limit-on-bitbucket-pipeline/79380 "2022-12-26T10:12:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SMTALHA](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@SMTALHA](https://community.sonarsource.com/u/SMTALHA)\
**Post date:** [December 26, 2022, 10:12am UTC](https://community.sonarsource.com/t/container-docker-exceeded-memory-limit-on-bitbucket-pipeline/79380/1 "2022-12-26T10:12:02Z")

</div>

I am facing this error in my bitbucket pipeline .Please guide me about its fix.

---

<div class="post-metadata">

**Author:** ![P\_S](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/p_s/32/29895_2.png) [@P\_S](https://community.sonarsource.com/u/P_S)\
**Post date:** [December 26, 2022, 10:18am UTC](https://community.sonarsource.com/t/container-docker-exceeded-memory-limit-on-bitbucket-pipeline/79380/2 "2022-12-26T10:18:04Z")

</div>

Hi Syed  
It seems that you have exceeded the memory available to be used in the build container, and thus the build failed to complete. I can try to comment if you can also share the the build setup.

---

<div class="post-metadata">

**Author:** ![SMTALHA](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@SMTALHA](https://community.sonarsource.com/u/SMTALHA)\
**Post date:** [December 26, 2022, 10:25am UTC](https://community.sonarsource.com/t/container-docker-exceeded-memory-limit-on-bitbucket-pipeline/79380/3 "2022-12-26T10:25:18Z")

</div>

pipelines:

branches:

```
ajmanbank:
 - step:
     name: Sonar cloud Testing
     script: 
       - pipe: sonarsource/sonarcloud-scan:1.4.0
         variables:
          SONAR_TOKEN: ${SONAR_TOKEN} # Optional
          EXTRA_ARGS: '-Dsonar.sources=src -Dsonar.tests=src -Dsonar.qualitygate.wait=true -Dsonar.test.inclusions=" **/testing/** ,**/*.spec.ts" -Dsonar.typescript.lcov.reportPaths=coverage/lcov.info'
          SONAR_SCANNER_OPTS: -Xmx7128m
          DEBUG: "true"

```

---

<div class="post-metadata">

**Author:** ![SMTALHA](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@SMTALHA](https://community.sonarsource.com/u/SMTALHA)\
**Post date:** [December 26, 2022, 10:32am UTC](https://community.sonarsource.com/t/container-docker-exceeded-memory-limit-on-bitbucket-pipeline/79380/4 "2022-12-26T10:32:08Z")

</div>

Please check this build setup of my bitbucket pipeline

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [January 3, 2023, 3:15pm UTC](https://community.sonarsource.com/t/container-docker-exceeded-memory-limit-on-bitbucket-pipeline/79380/5 "2023-01-03T15:15:22Z")

</div>

Hi,

I suspect this is really a Bitbucket question more than a SonarCloud one. [This SO answer](https://stackoverflow.com/a/61784443/2662707) may help.

&nbsp;  
Ann
