Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,295,693
Community Members
 
Community Events
165
Community Groups

Container 'docker' exceeded memory limit.

We are facing the above error (Mentioned in the title) while running the bitbucket yml file. We have tried substituting the value by taking https://community.atlassian.com/t5/Bitbucket-questions/Pipelines-Exceeded-Memory-Limit-Container-exceeded-memory-limit/qaq-p/1040776 as reference but still landed up with the same error.

 

Can someone mentioned what needs to be updated here?

 

Bitbucket-pipelines.yml file:

image: atlassian/default-image:2

clone:
depth: full

definitions:
caches:
sonar: ~/.sonar/cache
steps:
- step: &sonarcloud
name: Analyze on SonarCloud
caches:
- sonar
script:
- pipe: sonarsource/sonarcloud-scan:0.1.5
variables:
SONAR_TOKEN: ${SONAR_TOKEN}
pipelines:
branches:
'*':
- step: *sonarcloud

1 answer

Try to use newer version of the pipe, the one that you are using (0.1.5) is really old.
The current version is 1.0.1.

If that doesn't work, you will need to experiment with the docker memory settings and/or with the node size.
See https://confluence.atlassian.com/bitbucket/configure-bitbucket-pipelines-yml-792298910.html

Try overriding the size for the single step that is failing:

    - step:
        size: 2x # Double resources available for this step.

or 

definitions:
  services:
    docker:
      memory: 2048  

This seems to be an overwhelming recommendation, yet it does not work for me. I'm still running out of docker memory: "Container 'docker' exceeded memory limit."

Any other thoughts. This is happening for me when scanning a fairly large Angular project.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,170 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you