Yu  Sato
Yu Sato

Reputation: 471

Reconnect another tty on docker container

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

Answers (1)

Assaf Lavie
Assaf Lavie

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

Related Questions