title: Docker - how to send input to a program via the API
body: <p>I have been using Docker's remote API to create a container, run a Python program in it, attach to the container and stream the output written to stdout to the web. </p>
  
  <p>Now, I wanted my Python program to accept user input from stdin. E.g. </p>
  
  <pre><code>import sys
  name = sys.stdin.readline()
  print "Your name is: " + name
  </code></pre>
  
  <p>How do I pass the user input to this Python program running inside a Docker container via the API? I don't see any API end-points which will allow me to pass "input" to a process running inside a docker container.</p>
  
  <p>Thanks.</p>