Container web TTY

Tired of typing docker ps | grep xxx && docker exec -ti xxxx sh ? Try me!
Although I like terminal, I still want a better tool to get into the containers to do some debugging or checking.
So I build this container-web-tty. It can help you get into the container and execute commands via a web-tty,
based on yudai/gotty with some changes.
Both docker and kubectl are supported.
Usage
For docker:
docker run --rm -ti --name web-tty \
-p 8080:8080 \
-v /var/run/docker.sock:/var/run/docker.sock \
wrfly/container-web-tty
For kubernetes:
docker run --rm -ti --name web-tty \
-p 8080:8080 \
-e WEB_TTY_BACKEND=kube \
-e WEB_TTY_KUBE_CONFIG=/kube.config \
-v ~/.kube/config:/kube.config \
wrfly/container-web-tty
Keyboard Shortcuts (Linux)
- Cut the word before the cursor
Ctrl+w => You cannot do it for now (I'll working on it for Ctrl+Backspace, but I know little about js)
- Copy:
Ctrl+Shift+c => Ctrl+Insert
- Paste:
Ctrl+Shift+v => Shift+Insert
Features
- it works
- docker backend
- kubectl backend
- beautiful index
- start|stop|restart container(docker backend only)
- environment injection(extra params)
- proxy mode(client -> server's containers)
- auth
- TTY timeout
Show-off
List the containers on your machine:

It will execute /bin/sh if there is no /bin/bash inside the container:
/bin/bash: