title: Docker Bad owner or permissions on /root/.ssh/config
body: <p>So, I've set up <code>docker 17.03</code> on <code>Ubuntu 16.04.5 LTS</code>. The problem is, the application needs to <code>ssh</code> to an external server. Since <code>docker</code> binds current users <code>ssh</code> files, it should allow me to <code>ssh</code> into the server from the container. However its giving me the <code>Bad owner or permissions on /root/.ssh/config</code> error. </p>
  
  <p>From what I've figured, docker is running as my ubuntu user which is <code>1001</code> and is trying to access <code>root</code> account <code>ssh</code> files (I could be wrong) which is why its giving me this error. </p>
  
  <p>Also, when I run <code>echo $USER</code> from the container, its not returning any user, but just an empty line.</p>
  
  <p>The question is, has anybody faced this problem before and if so, has anybody solved it?</p>