progrium / envy

Lightweight dev environments with a twist
MIT License
321 stars 21 forks source link

Containers are not removed when websocket is closed #30

Open fgrehm opened 9 years ago

fgrehm commented 9 years ago

Fork of https://github.com/progrium/envy/issues/10#issuecomment-115404966

Steps to reproduce:

  1. Go to http://envy.host/u/a-user
  2. Wait until build is completed
  3. Close the browser (without an explicit exit)
  4. SSH into envy.host
  5. Run docker ps -a | grep a-user and notice that the container is still running
progrium commented 9 years ago

The hterm package left disconnects un-handled, so first step is fixing that. And then making sure envyd cleans up based on a disconnect.