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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,560,559
Community Members
 
Community Events
185
Community Groups

how to push Buildx docker image into AWS ECR.

Hi,

I am trying to push multi-arch docker images into ECR using  docker buildx command. Not able to Push. I am getting the following error. but I am able to push docker build images. any suggestion (or) solution?

ERROR:

INFO: Successfully logged in to https://xxxxxxxx.dkr.ecr.us-east-1.amazonaws.com


✖ Image not found: 404 Client Error for http://host.docker.internal:2375/v1.41/images/imag1:v1/json: Not Found ("no such image: imag1:v1: No such image: imag1:v1")

 

pipelines:

branches:

default:

- step:

name: Build and publish the docker image

image: docker-repo/dock-buildx:v1

runs-on:

- linux

- self.hosted

services:

- docker

script:

- export IMAGE_NAME="ecr_repo:${BITBUCKET_BUILD_NUMBER}"

# - docker build -t "$IMAGE_NAME" . // able to push this

- docker buildx version

- docker buildx create --use

- docker buildx build -t "${IMAGE_NAME}" --platform linux/amd64,linux/arm64 .

- pipe: atlassian/aws-ecr-push-image:1.5.0

variables:

AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID

AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY

AWS_DEFAULT_REGION : $AWS_DEFAULT_REGION

IMAGE_NAME: $IMAGE_NAME

TAGS: $BITBUCKET_BUILD_NUMBER

definitions:

services:

docker:

image: docker:dind

memory: 2048

1 answer

0 votes
Norbert C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Jun 20, 2022

Hi Madhaiyan,

Thanks for reaching out to Atlassian Community, my name is Norbert and I'm a Bitbucket Cloud Support Engineer, it's nice to meet with you!

Based on my observation the build fails as it doesn't find the "imag1:v1" image

✖ Image not found: 404 Client Error for http://host.docker.internal:2375/v1.41/images/imag1:v1/json: Not Found ("no such image: imag1:v1: No such image: imag1:v1")

 To verify if the imag1:v1 exists or not, before you push the Docker image, can you run a "docker image ls" command and give us the output?

Thank you.

Best Regards,
Norbert
Atlassian Bitbucket Cloud Support

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events