title: Using netcat to pipe unix socket to tcp socket
body: <p>I am trying to expose a unix socket as a tcp socket using this command:</p>
  
  <pre><code>nc -lkv 44444 | nc -Uv /var/run/docker.sock
  </code></pre>
  
  <p>When I try to access <code>localhost:44444/containers/json</code> from a browser, it doesn't load anything but keeps the connection open (the loading thingy keeps spinning), but the console (because of the -v flag) shows proper http response.</p>
  
  <p>Any ideas on how to get this working?</p>
  
  <p>PS: I know I can use socat, or just tell docker to also listen on a tcp socket, but I am using the project atomic vm image, and it won't let me modify anything except /home.</p>