Created
June 28, 2018 09:15
-
-
Save laszlomiklosik/67cc6ffad9d524625400c65025a2d844 to your computer and use it in GitHub Desktop.
Docker exec with root (how to jump in a docker container directly with root)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker exec -u 0 -it openam bash | |
root@192:/usr/local/tomcat# whoami | |
root | |
(user 0 is root, but it works with any other userid from /etc/passwd of the container) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment