Issue
Recently I moved my registry from Dockerhub to AWS ECR.
I'm using Jenkins to pull image and deploy to local vmware. I'm using docker swarm as container orchestration tool.When I was using Dockerhub jenkins was able to pull and deploy docker services successfully.But when I'm using AWS ECR,the jenkins job is UNSTABLE.
Jenkins job is getting timeout.When i checked in server,some images are successfully pulled but some are not.
docker pull image is taking more time when we are using aws ecr.Any idea?
Solution
This could be due to many reasons.
- Network/firewall issues.
- Storage volume slowness etc.
I think first you need to narrow down the issue. Did you check the latency between the Jenkins worker and AWS ECR? I would suggest directly login into the Jenkins worker and try pulling the Image directly. If the direct pulling is working without a slowness you may have to dig into Jenkins to understand what's happening.
Answered By - ycr
Answer Checked By - Senaida (JavaFixing Volunteer)