Closed theraw closed 4 years ago
closing this as i tried by myself.
For those who wanna know this pr is not the same as docker exec -it
it attaches different tty on request doesn't attach the current running with cmd params
if we start a docker container with a cmd to run some app, apache nginx or whatever when you do
docker exec -it container1 bash
you'll see the running appoutput (output of nginx or apache)
I don't think so... when you exec
into the container with bash
command, you'll have a stdin
and stdout
of bash
, instead of the nginx
, so what you'll see is only a bash shell. If you want to see the output of nginx
or apache
, you should use docker logs xxx
.
so what output will container-web-tty display?
As for this question, container-web-tty will give you a web tty, so it act the same as a bash shell (or ash
, sh
).
yes. that was my mistake of explanation 😕
which is weird i've misundersood it for some other thing or i don't remember what happend
Hello,
I have some kind of project on mind which i'm thinking to run under docker containers,
So i also need to provide to my users access via console(tty), so randomly found this project and it looks interesting, however (since i can't install this atm) i have a question
How does this attach console into the browser my question exactly is example if we start a docker container with a
cmd
to run some app,apache
nginx
or whatever when you dodocker exec -it container1 bash
you'll see the running appoutput
(output of nginx or apache) so what output will container-web-tty display? the same asdocker exec -it...
or nothing like you just connect via ssh to a server with a new session?Thanks