Login to your docker container with root access

Cant seem to su to root in a docker bash console, here's the solution

You can log into the Docker container using the root user (ID = 0) instead of the provided default user when you use the -u option

docker exec -u 0 -it mycontainer bash

Credit: https://stackoverflow.com/questions/28721699/root-password-inside-a-docker-container

v1.9.1

© ScottFreeIT.com 2020