Intermittent error: Docker Login failed with exit code 1 running jobs in container
See original GitHub issueDescribe the bug
I am running a job in a container using self-hosted
runners and sometimes an error related to docker login
occurs so we need to re-run the job again and everything works fine.
I know it can be related to my credentials but I have another job running aws ecr get-login-password
command to get the token before this job below.
Note: I am using a private ECR.
My job:
job_name:
name: Job Name
runs-on: self-hosted
container:
image: 12345678910.dkr.ecr.eu-west-1.amazonaws.com/ecr_name:tag
credentials:
username: AWS
password: ${{ secrets.password }}
Expected behavior
Run job without docker login error
Runner Version and Platform
EKS version: v1.22.9-eks-a64ea69
Current runner version: ‘2.293.0’
What’s not working?
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:8
Top Results From Across the Web
GitHub Action Error: Docker pull failed with exit code 1
I'm trying to run my npm build inside the docker container using our private docker image with GitHub actions. My Workflow yaml file...
Read more >The CI/CD Pipeline suddenly fails without any changes ...
Hello! As the title suggests, starting today we've been experiencing issues with successfully running the build job in our pipeline.
Read more >How to Fix 'Terminated With Exit Code 1' Error
Exit Code 1 indicates that a container shut down, either because of an application failure or because the image pointed to an invalid...
Read more >Initialize containers: Docker login fail with exit code 1
Re: Azure DevOps Pipelines failing: Initialize containers: Docker login fail with exit code 1 ... - Go to the SP, create a new...
Read more >Docker Compose release notes
Fixed a race condition, waiting for containers when one exit. Added a warning telling users that uid,gid,mode are not implemented for build.secrets ....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@rlinstorres Adding to the proposed fix by @ksdc-andreo you may be facing an intermittent escaping or special char mismatch. Have you tried the following?
However, this does mean that I can’t start a job inside a container (I can only launch containers, etc. as steps within a job).