recvtty is a reference implementation of a consumer of runC's --console-socket API. It is automatically built when doing a make on the runc project.
These instructions were tested on Ubuntu 16.04. Also go, git are required.
go get github.com/opencontainers/runc
cd $GOPATH/src/github.com/opencontainers/runc