building docker image: cannot allocate memory

I am building a docker image using the  the fabric8/docker maven plugin and end up with the following error:

Unable to build image: Error processing tar file(exit status 1): write /usr/share/zoneinfo/posix/Pacific/Wallis: cannot allocate memory


my pipeline is:

image: maven:3.5

docker: true

depth: 5

build-deploy-to-beta: &beta
- step:
- maven
- curl "" -o ""
- unzip
- ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
- $BITBUCKET_CLONE_DIR/src/main/ci/
- $(aws ecr get-login --no-include-email)
- mvn verify docker:build docker:push
master: *beta

When I execute the pipeline on a local docker image as per

I don't get the error. I start my local image with:

docker run -it -v /var/run/docker.sock:/var/run/docker.sock -v /usr/bin/docker:/usr/bin/docker --volume=/mls-search:/mls --workdir="/mls" --memory=4g --memory-swap=4g --entrypoint=/bin/bash maven:3.5


What is different between the local docker build and the bitbucket one so I can reproduce the issue locally?


1 answer

1 accepted

0 vote

Possibly this has just been caused by an intermittent operational error with Bitbucket Pipelines, see the following incident:

Accordingly, things might just work if you try again now?



That was it.

Glad to hear @Xavier Naud - please also 'accept' my answer as solution via the checkmark on the left side so that it doesn't show up as unanswered anymore, thereby keeping others and myself focused on and motivated to assist with new questions :) - thanks!

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

22,739 views 26 12
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you