If attaching to stdin, set StdinOnce, as per the docker CLI.
Merge pull request #145 from aanand/set-stdinonce

If attaching to stdin, set StdinOnce, as per the docker CLI.