I'm trying to add a terminal to a web application with xterm.js and its 'attach' addon. I'd like to just have a process running in a Docker container, and then attach the xterm instance to stdin/stdout for the container. The example for the attach addon indicates that this should be straightforward using the websocket interface for container attachment with docker.
I haven't yet been able to do this successfully, but it's possible that it's purely a problem with my local configuration. A github issue for xterm.js leaves it a bit ambiguous whether this should actually work now, based on changes to the docker API. Has anyone had success with this using a modern version of docker?