The expect
command is used to automate interactive tasks. When the docker
container is executed without the --interactive
flag, it runs in non-interactive mode, which means that it does not allocate a TTY (teletype) for the container, and the standard input is closed. Therefore, expect
cannot interact with the container as there is no interactive session available. Without a TTY, the input sent to the docker
command is not considered as interactive, so expect
fails to send any input to the container.
Asked: 2021-05-04 11:00:00 +0000
Seen: 1 times
Last updated: Feb 24 '22