Root User in Docker Training

Hello all,

I am very much a beginner in the docker world much less the tech world. I am wondering how I can login to a new terminal session with root user from a different terminal. can some one please assist me

Thank You

You could try: docker attach <your container name>

1 Like

The attach context as @eelsholz answered is the way to go when you did not start your container with the ti switches.

Should you want to interact with a console every time on a container, create it using those switches.

docker run -ti myImage.


Thank Yall. i got into it