Skip to main content

Persistent screen session inside Docker container [Resolved]

I am trying to create a Docker container with screen session running some script. Dockerfile contains

CMD screen -S session1 ./testLinux

When I run it in detached mode it closes immediately, saying

Must be connected to a terminal.

How do I run persistent screen session inside detached docker container?


Question Credit: flanker12X
Question Reference
Asked July 18, 2019
Posted Under: Unix Linux
32 views
1 Answers

Your Answer