Search code examples
amazon-web-servicesjenkinsvmwareamazon-ecr

local vmware takes lot of time to pull the docker image from AWS ECR


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

  • 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.

    1. Goto Post-build Actions
    2. Open Advanced
    3. Exec timeout (ms) : 0

    Save and rebuild the job