title: Error response from daemon:request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
body: <p>IM trying to deploy on prod. But was gotting this error</p>
  <p><strong>Error response from daemon: Get <a href="https://registry.gitlab.com/v2/" rel="nofollow noreferrer">https://registry.gitlab.com/v2/</a>: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)</strong></p>
  <p>gitlab-ci:</p>
  <pre><code>docker_push:
   stage: docker
   services:
  - docker:dind
   script:
   - apk add --no-cache docker  
   - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.gitlab.com
   - mvn -B package -Dmaven.test.skip=true docker:build -DpushImage
  
  job_deploy_prod:
  stage: deploy
  only:
   - master
   - tags
  when: manual
  environment:
  name: prod
  variables:
  SERVER: serverBNP-prod1
  SSH_OPTS: -p 22 -l udoc -o BatchMode=true -o StrictHostKeyChecking=no
  script:
  - export VERSION=$(fgrep -m 1 -w version pom.xml | sed -re 's/^.*&gt;(.*)&lt;.*$/\1/')
  - ssh $SSH_OPTS -i $HOME/.ssh/id_rsa $SERVER &quot;docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.gitlab.com&quot; 
  - ssh $SSH_OPTS -i $HOME/.ssh/id_rsa $SERVER &quot;docker rm -f proj&quot;
  - ssh $SSH_OPTS -i $HOME/.ssh/id_rsa $SERVER &quot;docker pull registry.gitlab.com/bnp/proj:$VERSION&quot;
  - ssh $SSH_OPTS -i $HOME/.ssh/id_rsa $SERVER &quot;docker run -d -p 8080:8080 -e 'SPRING_PROFILES_ACTIVE=prod' -v /etc/localtime:/etc/localtime -v /etc/timezone:/etc/timezone --name proj registry.gitlab.com/bnp/proj:$VERSION&quot;
  </code></pre>
  <p>Does anyone knows how to fix it please.?</p>
  <p>Thank you</p>