title: Docker - Gitlab container. SSH git login error
body: <p>I have a Docker container with a Gitlab application. When i execute a git clone/push/pull the command not work and output this message:
  "fatal protocol error bad line length character: Welc"</p>
  
  <p>The server response is not the response expected by git (it is a response for a common ssh connection).</p>
  
  <p>This occurs because there is an error during the connection, see:</p>
  
  <pre><code> Mar 20 14:55:31 gitlab sshd[7934]: reverse mapping checking getaddrinfo for XXXX.XXXX.XXX.XX.static.host.gvt.net.br [XXXX.XXXX.XXX.XX] failed - POSSIBLE BREAK-IN ATTEMPT!
   Mar 20 14:55:32 gitlab sshd[7934]: Accepted publickey for git from XXXX.XXXX.XXX.XX port XXXX ssh2
   Mar 20 14:55:32 gitlab sshd[7934]: pam_loginuid(sshd:session): set_loginuid failed
   Mar 20 14:55:32 gitlab sshd[7934]: pam_unix(sshd:session): session opened for user git by (uid=0)
   Mar 20 14:55:32 gitlab sshd[7934]: pam_env(sshd:session): Unable to open env file: /etc/default/locale: No such file or directory
   Mar 20 14:55:32 gitlab sshd[7934]: error: PAM: pam_open_session(): Cannot make/remove an entry for the specified session
  </code></pre>
  
  <p><strong>Info</strong> </p>
  
  <ul>
  <li>GitLab version: 6.6.5</li>
  <li>Docker version: 9.0</li>
  <li>Host: Ubuntu 13.10</li>
  <li>Container: Ubuntu 13.10</li>
  </ul>
  
  <p>I think i need to enable something in my Docker container because outside a Docker container the gitlab works correctly.</p>
  
  <p>How to fix this?
  Thanks!</p>