How to login to Docker container
We can use "docker exec" command to attach shell to the running container.
#docker exec -it containerid /bin/bash
Here we need to replace containerid with the id of the required container.
This will login to the container as root.
That's all…