I have a running docker container with command 
/bin/bash --login. When I run the command$ docker exec -it devsh /bin/bash --login
I can access the container’s Bash, but when I run screen, I got this error:
$ screen
Must be connected to a terminal.
It turns out that I should use 
docker attach devsh. This command allows me to access the original shell in the container.
No comments:
Post a Comment