Skip to content

src/tasts/ECRPushImage failed on Windows Agent #597

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

Open
tupenieks opened this issue Mar 31, 2025 · 0 comments
Open

src/tasts/ECRPushImage failed on Windows Agent #597

tupenieks opened this issue Mar 31, 2025 · 0 comments

Comments

@tupenieks
Copy link

tupenieks commented Mar 31, 2025

Describe the bug

Getting the next error when the task is executing on Microsoft Hosted Agents, tested with Windows 2019, 2022 and 2025 images:

Invoking 'C:\Windows\system32\docker.exe' with command 'login'
##[debug]which 'C:\Windows\system32\docker.exe'
##[debug]found: 'C:\Windows\system32\docker.exe'
##[debug]C:\Windows\system32\docker.exe arg: login
##[debug]C:\Windows\system32\docker.exe arg: -u
##[debug]C:\Windows\system32\docker.exe arg: AWS
##[debug]C:\Windows\system32\docker.exe arg: -p
##[debug]C:\Windows\system32\docker.exe arg: theTokenGenerated
##[debug]C:\Windows\system32\docker.exe arg: https://accountID.dkr.ecr.us-east-1.amazonaws.com/
##[debug]exec tool: C:\Windows\system32\docker.exe
##[debug]arguments:
##[debug] login
##[debug] -u
##[debug] AWS
##[debug] -p
##[debug] theTokenGenerated
##[debug] https://accountID.dkr.ecr.us-east-1.amazonaws.com/
##[debug]Process exited with code 1 and signal null for tool 'C:\Windows\system32\docker.exe'
##[debug]STDIO streams have closed and received exit code 1 and signal null for tool 'C:\Windows\system32\docker.exe'
##[debug]task result: Failed
##[error]Error: The process 'C:\Windows\system32\docker.exe' failed with exit code 1
##[debug]Processed: ##vso[task.issue type=error;source=TaskInternal;]Error: The process 'C:\Windows\system32\docker.exe' failed with exit code 1
##[debug]Processed: ##vso[task.complete result=Failed;]Error: The process 'C:\Windows\system32\docker.exe' failed with exit code 1

(The token and the account id where replaced by 'theTokenGenerated' and 'accountID' in order to avoid issues)

To reproduce

  • Go to any ADO org where you have access
  • Specify a pipeline with any windows agent and add the task on it, I have it on a template (Both yamls manually created and placed on a repo) but should be able to manage to mount it trough the ui.
  • Create the pipeline on ADO referencing the yaml
  • Run the pipeline
  • Get the error (?)

Expected behavior

Task publishes the image to ECR

Your Environment

  • Cloud based, microsoft hosted agents
  • AWS Toolkit for Azure DevOps version 1.20.0

Additional context

I'm currently using this task on ubuntu agents without issues, but now I'm forced to build a net framework 4.8 app and I'm forced to use windows agents in order to build with the dockerfile.

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

No branches or pull requests

1 participant