Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

Custom image not working as expected?

Hi there. I'm using a custom Docker image stored in the Docker Hub ("jimmyadaro/gitlab-ci-cd"), it's a simple Alpine image which updates itself and installs OpenSSH and LFTP. Quite simple, right? It works for me in GitLab CI/CD (I even made a simple tutorial like a year ago).

Now, I'm trying to use bash or OpenSSH and I get a pipeline fatal error. These are the commands inside my bitbucket-pipelines.yml file and the errors shown in the Bitbucket's "Pipelines" UI. What could be wrong?

Screen Shot 2019-05-13 at 16.24.35.pngScreen Shot 2019-05-13 at 16.25.16.pngScreen Shot 2019-05-13 at 16.25.43.pngScreen Shot 2019-05-13 at 16.25.58.png

2 answers

I have the same problem. Here is my pipeline sript. It will not download the image and use the image as the based.


      access-key: $AWS_ACCESS_KEY_ID
      secret-key: $AWS_SECRET_ACCESS_KEY

    - step:
        name: testing

        deployment: testing

          # call the build command within my docker container
          - ./


Any idea?

+1 I'm having the same issue. Did you manage to find a solution?

Do you found solution?

My final solution was to use `bitbucket-pipelines.yml` file to call a new one `` where I did the whole deployment process instead of using commands/scripts in the "deployment" step, like so:


# ...

# Deploy to UAT / Test based on commit push to "develop" branch
- step:
name: Build (npm)
# Use a light Node image
image: node:10.15.3
# Cache Node
- node
# Execute npm ci and build/bundle scripts
# Use npm ci instead of npm install
- npm ci
# Build my thing
- npm run-script build
- step:
# "$ pwd" for this step: "/opt/atlassian/pipelines/agent/build/", inside has all the repo files
name: Deploy to UAT
deployment: uat
# In case you want to trigger this by using Bitbucket's UI, uncomment the next line
#trigger: manual
# Make the deploy file executable and run it
- chmod +x
- ./
# Remove SSH key (even if this container should be self-destroyed)
- rm -f ~/.ssh/id_rsa

# ...


Hope it helps!

Suggest an answer

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

⭐ Calling all Bitbucket and DevOps experts: Special showcase opportunity ⭐

Hi, Bitbucket community! Are you a DevOps practitioner (or know one in your network)? Do you have DevOps tips, tricks, or learnings you'd like to share with the community? If so, we'd love to hea...

1,488 views 4 8
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