title: Attaching network storage to a Docker container for Gitlab (ssh issue)
body: <p>I'm in the process of installing <a href="https://github.com/sameersbn/docker-gitlab" rel="nofollow">Gitlab on my web server using Docker</a>.</p>
  
  <p>Everything is working like a champ until I try to use my NAS as the storage folder.</p>
  
  <p>I was hoping that this was going to work:</p>
  
  <p>Mount the NFS share using /etc/fstab to a local folder:</p>
  
  <pre><code>192.168.1.103:/gitlab   /home/user/gitlab_data   nfs   rsize=8192,wsize=8192,timeo=14,intr
  </code></pre>
  
  <p>Run Docker with the following volume connection:</p>
  
  <pre><code>sudo docker run -v /home/user/gitlab_data:/home/git/data .....
  </code></pre>
  
  <p>And the application works, until I try to push in to a repo with ssh.</p>
  
  <p>I get: Connection Refused, make sure you have the proper permissions....</p>
  
  <p>To be clear, I don't experience this error if I'm mounting a local folder, so I'm relatively confident this isn't an ssh configuration issue.</p>
  
  <p>I'm under the impression that this volume approach is creating what's functionally a symlink somewhere through the chain, which is expressly forbidden throughout the install files.</p>
  
  <p>My question is:</p>
  
  <p>How can I connect a folder on my NAS to my Gitlab Docker container in such a way that it won't trigger this ssh/symlink failure?</p>
  
  <p>I've searched for documentation for how to connect the drive directly, but nothing has quite done the trick yet.  In no way am I tied to NFS, I just started there because I read somewhere that Docker supports them.</p>
  
  <p>Cheers,
  -Berger</p>