title: Foward my ssh key from my Windows10 to my docker container
body: <p>After reading <a href="https://stackoverflow.com/questions/17846529/could-not-open-a-connection-to-your-authentication-agent">this thread</a>, I am not able to 100% foward my key, I'm blocked at step where I should run "ssh-add".</p>
  
  <p>Here is a part of my docker-compose.yml:</p>
  
  <pre><code>engine:
      build: ./docker/engine/
      volumes:
          - "./:/var/www/docker:rw"
          - "./docker/engine/php.ini:/usr/local/etc/php/conf.d/custom.ini:ro"
          - $SSH_AUTH_SOCK:/tmp/agent.sock
      environment:
          - SSH_AUTH_SOCK=/tmp/agent.sock
  </code></pre>
  
  <p>On my container, I can see without problem the file "/tmp/agent.sock" and the ENV var "SSH_AUTH_SOCK" when I print them with printenv.</p>
  
  <p>After that I start ssh-agent with:</p>
  
  <pre><code>`eval `ssh-agent -s`
  </code></pre>
  
  <p>Then I add the ssh-key:</p>
  
  <pre><code>ssh-add
  </code></pre>
  
  <p>But if I print the last error (echo $?), I get <strong>1</strong>.</p>
  
  <blockquote>
    <p>From doc: Exit status is 0 on success, 1 if the specified command fails, and 2
    if ssh-add is unable to contact the authentication agent.</p>
  </blockquote>
  
  <p>I tried so much thing, I have no other ideas, I have visited all the possible links on google <em>(damn)</em>.</p>
  
  <p>If you have a solution (or path to one), you will be my hero!</p>
  
  <p>Thanks.</p>