I'm looking to set up a web terminal, similar to ttyd, that lets me access the host terminal through a Docker container. I'm planning to manage authentication and access control through a reverse proxy. Ideally, if a user is an admin, they should be able to access the host system shell. I've enjoyed making this setup work, but it feels a bit hacky. Am I overlooking any straightforward tools for this? Any other suggestions would be appreciated!
4 Answers
I don’t really get why you'd want to do this. If you're using privileged mode with host PID and network namespaces, you’ve really taken down the security walls that containers offer. What you're creating isn't exactly a host terminal, but it gets close. You might as well just run whatever you need directly on the host instead of forcing Docker into this role.
I hear you, but the goal was to have a simple way to start a container for web access. It might not be worth the potential risks involved.
You could try Guacamole; it offers similar functionality. But be warned, it’s pretty large and comes with a lot of configurations.
If you're looking for something lightweight and easy to set up, check out Termix on GitHub. It might just fit your needs!

Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures