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?
I was able to resolve the issue. Because of network slowness jenkins got timed out.
So I removed the time out limit from jenkins then it worked fine.
- Goto Post-build Actions
- Open Advanced
- Exec timeout (ms) : 0
Save and rebuild the job