Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

A step does not have the minimum resources needed to run (1024 MB). Services on the current step are Edited

1. Can't paste with formatting, sorry - I tried ..

2. Getting this error:

Configuration error

A step does not have the minimum resources needed to run (1024 MB). Services on the current step are consuming 7128 MB

How do I give some memory to my step 1? Couldn't find it anywhere explained. Tried to reduce from 7128 to 6000, getting the same error just with 6000 now. If anymore could point me in the right direction that would be helpful, thanks.


default: # TODO: add branches
- step:
name: ECR login script
image: python:3.7.3-alpine3.8
- pip install awscli
- echo $(aws ecr get-login --no-include-email --region us-west-2) >
- pip
- step:
name: Build and push docker image
- docker
size: 2x
# TODO: should be prod ECR
- docker build --tag <image>:$BITBUCKET_COMMIT .
- export AWS_ACCESS_KEY_ID=<access key>
- sh
- docker push <image>:$BITBUCKET_COMMIT
- docker

docker: true

memory: 7128

1 answer

0 votes

Hi @tobias_fielitz

Have you tried using size: 2x in your first step as you do for the second step?

Bitbucket pipelines has two configurations for memory 4GB (size: 1x which is the default) and 8GB (size: 2x) as per Configure bitbucket-pipelines.yml (size).
⚠️That will double the minutes consumed for your build.


I also recommend you to check this document to be informed of what limitations you will find in Bitbucket pipelines:


I hope that helps.

I highly doubt that:

pip install awscli
echo $(aws ecr get-login --no-include-email --region us-west-2) >

requires 2x.

I've solved it by building a base image with the expensive stuff (numpy, scipy, pandas) and use that.

Like Carmelo Martinez (260) likes this

Hi @tobias_fielitz

I reviewed your script again after your last message (thank you for calling my attention) and found this:

Run Docker commands in Bitbucket Pipelines - Atlassian Documentation

Add Docker to all build steps in your repository

  docker: true

Note that even if you declare Docker here, it still counts as a service for Pipelines, has a limit of 1 GB memory, and can only be run with two other services in your build step. This setting is provided for legacy support, and we recommend setting it on a step level so there's no confusion about how many services you can run in your pipeline.

The options > docker > true is adding docker as a service to all steps and definitions > services > docker > memory > 7128  is configuring the docker instance to use a bigger amount of memory. I would say that to fix the issue you needed just to remove the options section and leave the docker service definition inside the second step only.

Thanks @Daniel Santos I've also done that.

Like Daniel Santos likes this

And it helped?

Suggest an answer

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

Calling any interview participants for Bitbucket Data Center

Hi everyone,  We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...

451 views 4 4
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