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 votes
Answer accepted

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
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

274 views 0 12
Read article

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