Apply changes to work with latest Travis / Docker. Cribs heavily from
https://github.com/d11wtq/dockerpty
Merge pull request #1 from jhmartin/docker10update

Apply changes to work with latest Travis / Docker.