Skip to content

unable to push multi-arch images to public.ecr.aws #1

@masterkain

Description

@masterkain

hello,
in drone I've used different docker plugins with some success: plugins/ecr, thegeeklab/drone-docker-buildx, plugins/kaniko-ecr:1.5.1-kaniko1.8.1

now I have this project where I have to pull base images from a mirror, build multi-arch and push to ECR (public) but I cannot find the right combination of parameters to pass to drone-docker-buildx-ecr - maybe some are straight up incompatible.

+ /usr/local/bin/dockerd --data-root /var/lib/docker --host=unix:///var/run/docker.sock
Detected registry credentials

Error response from daemon: login attempt to https://public.ecr.aws/v2/ failed with status: 400 Bad Request

time="2022-08-13T17:56:21Z" level=fatal msg="Error authenticating: exit status 1"
time="2022-08-13T17:56:21Z" level=fatal msg="exit status 1"

I've now wasted a bit of time trying to get this working, do you have any tips to share? like registry and repo string formats.
Public AWS has a registry like `https://public.ecr.aws/u8b9s1p2' which should be the root, then you have the repos.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions