Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Public ECR login issue on Windows #575

Open
crazy-max opened this issue Aug 8, 2023 · 1 comment
Open

Public ECR login issue on Windows #575

crazy-max opened this issue Aug 8, 2023 · 1 comment

Comments

@crazy-max
Copy link
Member

crazy-max commented Aug 8, 2023

https://github.com/docker/login-action/actions/runs/5796019187/job/15708732154#step:3:14

image

Retrieving registries data through AWS SDK...
AWS Public ECR detected with us-east-1 region
Logging into public.ecr.aws...
Error: Error saving credentials: error storing credentials - err: exit status 1, out: `The stub received bad data.`

Looks similar to:

@crazy-max crazy-max changed the title Public ECR login issue on Windows CR login issue on Windows Sep 12, 2023
@crazy-max crazy-max changed the title CR login issue on Windows ECR login issue on Windows Sep 12, 2023
@crazy-max crazy-max changed the title ECR login issue on Windows Public ECR login issue on Windows Sep 12, 2023
@sbe-arg
Copy link

sbe-arg commented Dec 18, 2024

For anyone with this issue, make sure you are using windows-2022 runners

https://docs.aws.amazon.com/powershell/latest/reference/items/Get-ECRLoginCommand.html

...
      - name: Login AWS
        uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2

      - name: ECR
        run: |
            (Get-ECRLoginCommand).Password | docker login --username AWS --password-stdin accountid.dkr.ecr.region.amazonaws.com
          docker tag \
              "someimage/service:tag" \
              "accountid.dkr.ecr.region.amazonaws.com/service:tag"
          docker push "accountid.dkr.ecr.region.amazonaws.com/service:tag"
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants