If I run
docker run -it ubuntu bash
Does it actually SSH into the container, or does it use another protocol?
DevOps Stack Exchange is a question and answer site for software engineers working on automated testing, continuous delivery, service integration and monitoring, and building SDLC infrastructure. It only takes a minute to sign up.
Sign up to join this community
docker run -it --rm ubuntu su -
rather than running bash. Runningsu -
simulates a full login and as a result, initialises some environment variables such asTERM
.