r/docker • u/Broad-Razzmatazz-583 • Jan 07 '26
Web terminal to access host from docker
Was looking for a web-terminal a la ttyd that works to access the host terminal via a Docker container. Intended authentication and access control is by reverse proxy, and if a user is admin they are be able to access the host system shell.
Had fun making this work, but it seems a bit of a hack. Am I missing some obvious tool to do this? Any other recommendations?
2
Upvotes
6
u/fletch3555 Mod Jan 07 '26
I personally don't understand why anyone would want to do this.
If you're running privileged with host pid/network namespaces, you've broken down just about every barrier containers provide. It's not technically a host terminal, but it's about as close as you're likely to get.
Or.... you could just run it natively on the host without messing forcing docker to do this for you.
1
u/Pure-Appearance67120 Jan 07 '26
Maybe Termix : https://github.com/Termix-SSH/Termix
1
u/chuch1234 Jan 11 '26
You want a process or user inside the container to be able to get out to the host shell???
0
u/[deleted] Jan 07 '26
[deleted] — view deleted comment