Reputation: 471
I want to enter a docker container running multiple tty
but I executed docker attach
then I could only one tty.
For example, /dev/tty1 and /dev/tty2 are running, I could only attach /dev/tty2, but I could not attach /dev/tty1
How can I connect /dev/tty1?
Upvotes: 1
Views: 281
Reputation: 75913
You can do docker exec -it YOUR-CONTAINER
to create a new session inside the running container.
https://docs.docker.com/engine/reference/commandline/exec/
Upvotes: 1