Docker image root access

How can I log in to the official docker image as root?

For example, using kubectl on Kubernetes to start a session within a container gives an unprivileged user shell. I have not found any way to start a root shell, or any mention of what the root password is, not in the Dockerfiles, not anywhere.

Having the ability to enter a container, install for example "iotop" to debug issues is an absolute necessity.

You mean like docker exec -it CONTAINER bash?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.