Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laszlomiklosik/67cc6ffad9d524625400c65025a2d844 to your computer and use it in GitHub Desktop.
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)
$ 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