Forked from 7rin0/gist:ea890d2d4bf25a890b86aff01290e7d0
Last active
April 27, 2019 18:49
-
-
Save shemul/638d0ee92aa09d105a32218a7a31033b to your computer and use it in GitHub Desktop.
Docker exec root or default user
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
# Root. | |
$ docker exec -u 0 -it {container_id/image_name} bash | |
or | |
# Default container's user. | |
$ docker exec -it {container_id/image_name} bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment